mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-07 12:00:01 +03:00
Fixed bug where config api would call itself
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user