mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 15:37:07 +03:00
Don't fail when YouTube API fails
This commit is contained in:
@@ -115,7 +115,7 @@ async function autoModerateSubmission(submission, callback) {
|
||||
});
|
||||
|
||||
if (err) {
|
||||
return "Couldn't get video information.";
|
||||
return false;
|
||||
} else {
|
||||
// Check to see if video exists
|
||||
if (data.pageInfo.totalResults === 0) {
|
||||
|
||||
Reference in New Issue
Block a user