From 7e24180f03db96cc17a015ec49168a23c8653832 Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Tue, 30 Jun 2020 23:03:07 -0400 Subject: [PATCH] Fixed bug in globalArgsRequiresSafeDownload function --- backend/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;