From 48350936067417729de11054d55304097861b68e Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Thu, 24 Dec 2020 00:10:54 -0500 Subject: [PATCH] Fixed issue where some non-YT videos would fail as the pre-check was incompatible --- backend/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app.js b/backend/app.js index d284b3bd..8c032c4c 100644 --- a/backend/app.js +++ b/backend/app.js @@ -1119,10 +1119,10 @@ async function downloadFileByURL_exec(url, type, options, sessionID = null) { // get video info prior to download let info = await getVideoInfoByURL(url, downloadConfig, download); - if (!info) { + if (!info && url.includes('youtu')) { resolve(false); return; - } else { + } else if (info) { // check if it fits into a category. If so, then get info again using new downloadConfig category = await categories_api.categorize(info);