mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-01 00:02:55 +01:00
fix(sponsorblock): handle response error code 400 (#143)
This commit is contained in:
parent
08cca3c6ec
commit
40f9af0efd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user