fix: tweaking download options

This commit is contained in:
Chubby Granny Chaser
2025-04-09 16:06:01 +01:00
3 changed files with 3 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ class HttpDownloader:
options.update({
"split": "4",
"max-connection-per-server": "16",
"min-split-size": "1M"
"min-split-size": "2M"
})
downloads = self.aria2.add(url, options=options)

View File

@@ -147,11 +147,11 @@ def action():
torrent_downloader.start_download(url, data['save_path'])
else:
if existing_downloader and isinstance(existing_downloader, HttpDownloader):
existing_downloader.start_download(url, data['save_path'], data.get('header'), data.get('out'), data.get('allow_multiple_connections', False))
existing_downloader.start_download(url, data['save_path'], data.get('header'), data.get('out'))
else:
http_downloader = HttpDownloader()
downloads[game_id] = http_downloader
http_downloader.start_download(url, data['save_path'], data.get('header'), data.get('out'), data.get('allow_multiple_connections', False))
http_downloader.start_download(url, data['save_path'], data.get('header'), data.get('out'))
downloading_game_id = game_id