From f29a29bf2f61ea559f26534b4f769b59455bbdc8 Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Sun, 1 Mar 2020 00:46:42 -0500 Subject: [PATCH] fixed bug that prevented custom args from working --- backend/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app.js b/backend/app.js index b4f60fd..5049783 100644 --- a/backend/app.js +++ b/backend/app.js @@ -523,7 +523,7 @@ app.post('/tomp3', function(req, res) { let qualityPath = ''; if (customArgs) { - downloadConfig = [customArgs]; + downloadConfig = customArgs.split(' '); } else { if (customOutput) { downloadConfig = ['-o', audioFolderPath + customOutput + '.mp3', '-x', '--audio-format', 'mp3', '--write-info-json', '--print-json']; @@ -611,7 +611,7 @@ app.post('/tomp4', function(req, res) { let qualityPath = 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4'; if (customArgs) { - downloadConfig = [customArgs]; + downloadConfig = customArgs.split(' '); } else { if (customOutput) { downloadConfig = ['-o', path + customOutput + ".mp4", '-f', qualityPath, '--write-info-json', '--print-json'];