mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-30 22:31:03 +00:00
fix: remove allow_multiple_connections from download options
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user