fix: remove allow_multiple_connections from download options

This commit is contained in:
Hachi-R
2025-04-09 11:20:42 -03:00
parent 98ed07d6d2
commit 2ee3bebfc7
2 changed files with 1 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ class HttpDownloader:
)
)
def start_download(self, url: str, save_path: str, header: str, out: str = None, allow_multiple_connections: bool = False):
def start_download(self, url: str, save_path: str, header: str, out: str = None):
if self.download:
self.aria2.resume([self.download])
else:
@@ -20,13 +20,6 @@ class HttpDownloader:
"dir": save_path,
"out": out
}
if allow_multiple_connections:
options.update({
"split": "16",
"max-connection-per-server": "16",
"min-split-size": "1M"
})
downloads = self.aria2.add(url, options=options)

View File

@@ -372,7 +372,6 @@ export class DownloadManager {
game_id: downloadId,
url: downloadUrl,
save_path: download.downloadPath,
allow_multiple_connections: true,
};
}
case Downloader.TorBox: {
@@ -385,7 +384,6 @@ export class DownloadManager {
url,
save_path: download.downloadPath,
out: name,
allow_multiple_connections: true,
};
}
case Downloader.Hydra: {
@@ -400,7 +398,6 @@ export class DownloadManager {
game_id: downloadId,
url: downloadUrl,
save_path: download.downloadPath,
allow_multiple_connections: true,
};
}
}