mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-19 02:41:29 +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
|
// get video info prior to download
|
||||||
let info = await getVideoInfoByURL(url, downloadConfig, download);
|
let info = await getVideoInfoByURL(url, downloadConfig, download);
|
||||||
if (!info) {
|
if (!info && url.includes('youtu')) {
|
||||||
resolve(false);
|
resolve(false);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else if (info) {
|
||||||
// check if it fits into a category. If so, then get info again using new downloadConfig
|
// check if it fits into a category. If so, then get info again using new downloadConfig
|
||||||
category = await categories_api.categorize(info);
|
category = await categories_api.categorize(info);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user