mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-20 22:03:20 +03:00
Added missing code that makes category paths relative to the root dir
This commit is contained in:
@@ -1420,7 +1420,8 @@ async function generateArgs(url, type, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (customOutput) {
|
if (customOutput) {
|
||||||
downloadConfig = ['-o', path.join(fileFolderPath, customOutput) + ".%(ext)s", '--write-info-json', '--print-json'];
|
customOutput = options.noRelativePath ? customOutput : path.join(fileFolderPath, customOutput);
|
||||||
|
downloadConfig = ['-o', `${customOutput}.%(ext)s`, '--write-info-json', '--print-json'];
|
||||||
} else {
|
} else {
|
||||||
downloadConfig = ['-o', path.join(fileFolderPath, videopath + (is_audio ? '.%(ext)s' : '.mp4')), '--write-info-json', '--print-json'];
|
downloadConfig = ['-o', path.join(fileFolderPath, videopath + (is_audio ? '.%(ext)s' : '.mp4')), '--write-info-json', '--print-json'];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user