From 053c8db9dd637d6dbbf37ae2f290b6c3ea3ff3ad Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Tue, 30 Jun 2020 22:55:08 -0400 Subject: [PATCH] Fixed bug where config api would call itself --- backend/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/config.js b/backend/config.js index 9bcef56..4842041 100644 --- a/backend/config.js +++ b/backend/config.js @@ -156,7 +156,7 @@ function setConfigItems(items) { } function globalArgsRequiresSafeDownload() { - const globalArgs = config_api.getConfigItem('ytdl_custom_args'); + const globalArgs = getConfigItem('ytdl_custom_args'); const argsThatRequireSafeDownload = ['--write-sub', '--write-srt']; const failedArgs = globalArgs.filter(arg => argsThatRequireSafeDownload.includes(arg)); return failedArgs && failedArgs.length > 0;