mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Let NB mod fail on any internal server error
This commit is contained in:
@@ -113,7 +113,7 @@ async function autoModerateSubmission(submission, callback) {
|
||||
} else {
|
||||
let overlap = false;
|
||||
http = await fetch("https://ai.neuralblock.app/api/getSponsorSegments?vid=" + submission.videoID);
|
||||
if (http.status === 500) return false;
|
||||
if (http.status >= 500 && http.status < 600) return false;
|
||||
|
||||
nb_predictions = await http.json();
|
||||
for (const nb_seg of nb_predictions.sponsorSegments){
|
||||
|
||||
Reference in New Issue
Block a user