Merge pull request #133 from ajayyy/experimental

Don't fail when YouTube API fails
This commit is contained in:
Ajay Ramachandran
2020-09-07 10:25:27 -04:00
committed by GitHub

View File

@@ -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) {