fix(sponsorblock): handle response error code 400 (#143)

This commit is contained in:
Michael M. Chang 2022-09-18 18:04:39 -04:00 committed by GitHub
parent 08cca3c6ec
commit 40f9af0efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;