Skip to content

Commit

Permalink
fix(sponsorblock): handle response error code 400 (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
mchangrh committed Sep 18, 2022
1 parent 08cca3c commit 40f9af0
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -101,6 +101,9 @@ public static void submitSegments(String videoId, String uuid, float startTime,
case 429:
SponsorBlockUtils.messageToToast = str("submit_failed_rate_limit");
break;
case 400:
SponsorBlockUtils.messageToToast = str("submit_failed_invalid", connection.getErrorStream());
break;
default:
SponsorBlockUtils.messageToToast = str("submit_failed_unknown_error", responseCode, connection.getResponseMessage());
break;
Expand Down

0 comments on commit 40f9af0

Please sign in to comment.