From 6ea4176d637a65006e8d83e3656d543414eeb918 Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Sat, 24 Oct 2020 00:15:47 -0400 Subject: [PATCH] Added missing code that makes category paths relative to the root dir --- backend/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app.js b/backend/app.js index 19331f0..f5138a6 100644 --- a/backend/app.js +++ b/backend/app.js @@ -1420,7 +1420,8 @@ async function generateArgs(url, type, options) { } 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 { downloadConfig = ['-o', path.join(fileFolderPath, videopath + (is_audio ? '.%(ext)s' : '.mp4')), '--write-info-json', '--print-json']; }