Allows playlists to be categorized based on the first video that matches

This commit is contained in:
Isaac Abadi
2021-01-12 22:08:42 -05:00
parent 28ee77cee0
commit 1d5490c0ff
7 changed files with 32 additions and 18 deletions

View File

@@ -1133,7 +1133,7 @@ async function downloadFileByURL_exec(url, type, options, sessionID = null) {
return;
} else if (info) {
// check if it fits into a category. If so, then get info again using new downloadConfig
if (!Array.isArray(info)) category = await categories_api.categorize(info);
if (!Array.isArray(info) || config_api.getConfigItem('ytdl_allow_playlist_categorization')) category = await categories_api.categorize(info);
// set custom output if the category has one and re-retrieve info so the download manager has the right file name
if (category && category['custom_output']) {