Fixed bug where config api would call itself

pull/153/head^2
Isaac Grynsztein 5 years ago
parent 5537852134
commit 053c8db9dd

@ -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;

Loading…
Cancel
Save