fix: 修复小飞机问题,原因是 --size弃用

This commit is contained in:
koichinoi 2025-03-07 20:20:02 +08:00
parent 90711f0686
commit 08c5c3d252

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) => {