diff --git a/backend/config.js b/backend/config.js index 4842041e..59dccfc3 100644 --- a/backend/config.js +++ b/backend/config.js @@ -156,7 +156,7 @@ function setConfigItems(items) { } function globalArgsRequiresSafeDownload() { - const globalArgs = getConfigItem('ytdl_custom_args'); + const globalArgs = getConfigItem('ytdl_custom_args').split(',,'); const argsThatRequireSafeDownload = ['--write-sub', '--write-srt']; const failedArgs = globalArgs.filter(arg => argsThatRequireSafeDownload.includes(arg)); return failedArgs && failedArgs.length > 0;