mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 23:47:00 +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) {
|
if (err) {
|
||||||
return "Couldn't get video information.";
|
return false;
|
||||||
} else {
|
} else {
|
||||||
// Check to see if video exists
|
// Check to see if video exists
|
||||||
if (data.pageInfo.totalResults === 0) {
|
if (data.pageInfo.totalResults === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user