From cb386b7f8d07f0abcecac2ee4517cc7ea3b803e8 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 7 Sep 2020 10:23:51 -0400 Subject: [PATCH] Don't fail when YouTube API fails --- src/routes/postSkipSegments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/postSkipSegments.js b/src/routes/postSkipSegments.js index 799711f..91ae71e 100644 --- a/src/routes/postSkipSegments.js +++ b/src/routes/postSkipSegments.js @@ -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) {