Additional args now replace existing ones intelligently

This commit is contained in:
Isaac Abadi
2022-05-03 00:34:36 -04:00
parent 57fd991d5c
commit c33e8010b3
4 changed files with 120 additions and 1 deletions

View File

@@ -485,7 +485,7 @@ exports.generateArgs = async (url, type, options, user_uid = null, simulated = f
}
if (options.additionalArgs && options.additionalArgs !== '') {
downloadConfig = downloadConfig.concat(options.additionalArgs.split(',,'));
downloadConfig = utils.injectArgs(downloadConfig, options.additionalArgs.split(',,'));
}
const rate_limit = config_api.getConfigItem('ytdl_download_rate_limit');