mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-03 08:41:28 +03:00
Fixed issue where some non-YT videos would fail as the pre-check was incompatible
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user