Fixed bug in globalArgsRequiresSafeDownload function

This commit is contained in:
Isaac Grynsztein
2020-06-30 23:03:07 -04:00
parent 053c8db9dd
commit 7e24180f03

View File

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