Fixed bugged override

This commit is contained in:
Tzahi12345
2020-05-19 18:15:07 -04:00
parent e07acfd4b3
commit 4cf92b8f3d

View File

@@ -1472,7 +1472,7 @@ async function generateArgs(url, type, options) {
let downloadConfig = null;
let qualityPath = (is_audio && !options.skip_audio_args) ? '-f bestaudio' :'-f best[ext=mp4]';
const is_youtube = !url.includes('youtu');
const is_youtube = url.includes('youtu');
if (!is_audio && !is_youtube) {
// tiktok videos fail when using the default format
qualityPath = '-f best';