From 40f9af0efdacd33e77478f5edc8d41c68a638e3c Mon Sep 17 00:00:00 2001 From: "Michael M. Chang" Date: Sun, 18 Sep 2022 18:04:39 -0400 Subject: [PATCH] fix(sponsorblock): handle response error code 400 (#143) --- .../integrations/sponsorblock/requests/SBRequester.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/app/revanced/integrations/sponsorblock/requests/SBRequester.java b/app/src/main/java/app/revanced/integrations/sponsorblock/requests/SBRequester.java index 87f646bf..67068c2e 100644 --- a/app/src/main/java/app/revanced/integrations/sponsorblock/requests/SBRequester.java +++ b/app/src/main/java/app/revanced/integrations/sponsorblock/requests/SBRequester.java @@ -101,6 +101,9 @@ public class SBRequester { 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;