mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-06 11:22:21 +08:00
update: 更新aria2下载参数
This commit is contained in:
parent
8e1e0cea7a
commit
512d86feac
@ -109,6 +109,7 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
QStringList command;
|
QStringList command;
|
||||||
QString downloadDir = "/tmp/spark-store/";
|
QString downloadDir = "/tmp/spark-store/";
|
||||||
QString aria2ConnectionPerServer = "--max-connection-per-server=1";
|
QString aria2ConnectionPerServer = "--max-connection-per-server=1";
|
||||||
|
QString aria2ConnectionMax = "--max-concurrent-downloads=16";
|
||||||
|
|
||||||
if (useMetalink){
|
if (useMetalink){
|
||||||
command.append(metaUrl.toUtf8());
|
command.append(metaUrl.toUtf8());
|
||||||
@ -130,6 +131,7 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
command.append(aria2NoConfig.toUtf8());
|
command.append(aria2NoConfig.toUtf8());
|
||||||
command.append(aria2SizePerThreads.toUtf8());
|
command.append(aria2SizePerThreads.toUtf8());
|
||||||
command.append(aria2ConnectionPerServer.toUtf8());
|
command.append(aria2ConnectionPerServer.toUtf8());
|
||||||
|
command.append(aria2ConnectionMax.toUtf8());
|
||||||
if (useMetalink){
|
if (useMetalink){
|
||||||
command.append(aria2NoSeeds.toUtf8());
|
command.append(aria2NoSeeds.toUtf8());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user