Merge pull request #60 from koichinoi/fix-bug-tdl

fix: 修复小飞机问题,原因是 --size弃用
This commit is contained in:
RrOrange 2025-03-07 21:47:40 +08:00 committed by GitHub
commit fc21c8aef0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ export async function startTDL(url, curPath, isOversea, proxyAddr, videoDownload
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
curPath = path.resolve(curPath); curPath = path.resolve(curPath);
const proxyStr = isOversea ? `` : `--proxy ${ proxyAddr }`; const proxyStr = isOversea ? `` : `--proxy ${ proxyAddr }`;
const concurrencyStr = videoDownloadConcurrency > 1 ? `-t ${ videoDownloadConcurrency } -s 524288 -l ${ videoDownloadConcurrency }` : ''; const concurrencyStr = videoDownloadConcurrency > 1 ? `-t ${ videoDownloadConcurrency } -l ${ videoDownloadConcurrency }` : '';
const command = `tdl dl -u ${ url } -d ${ curPath } ${ concurrencyStr } ${ proxyStr }` const command = `tdl dl -u ${ url } -d ${ curPath } ${ concurrencyStr } ${ proxyStr }`
logger.mark(`[R插件][TDL] ${ command }`); logger.mark(`[R插件][TDL] ${ command }`);
exec(command, (error, stdout, stderr) => { exec(command, (error, stdout, stderr) => {