update: 更新aria2下载参数

This commit is contained in:
uniartisan 2022-11-27 12:21:15 +08:00
parent 8e1e0cea7a
commit 512d86feac

@ -109,6 +109,7 @@ void DownloadController::startDownload(const QString &url)
QStringList command;
QString downloadDir = "/tmp/spark-store/";
QString aria2ConnectionPerServer = "--max-connection-per-server=1";
QString aria2ConnectionMax = "--max-concurrent-downloads=16";
if (useMetalink){
command.append(metaUrl.toUtf8());
@ -130,6 +131,7 @@ void DownloadController::startDownload(const QString &url)
command.append(aria2NoConfig.toUtf8());
command.append(aria2SizePerThreads.toUtf8());
command.append(aria2ConnectionPerServer.toUtf8());
command.append(aria2ConnectionMax.toUtf8());
if (useMetalink){
command.append(aria2NoSeeds.toUtf8());
}