mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
Merge pull request #60 from koichinoi/fix-bug-tdl
fix: 修复小飞机问题,原因是 --size弃用
This commit is contained in:
commit
fc21c8aef0
@ -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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user