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: if self.download:
self.aria2.resume([self.download]) self.aria2.resume([self.download])
else: else:
@@ -20,13 +20,6 @@ class HttpDownloader:
"dir": save_path, "dir": save_path,
"out": out "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) downloads = self.aria2.add(url, options=options)

View File

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