mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: pass seeding list from downloader.py to download page
This commit is contained in:
parent
452532e18b
commit
a9085ec2ed
12 changed files with 98 additions and 30 deletions
|
|
@ -176,7 +176,7 @@ class TorrentDownloader:
|
|||
torrent_info = {
|
||||
'folderName': info.name() if info else "",
|
||||
'fileSize': info.total_size() if info else 0,
|
||||
'gameId': self.downloading_game_id,
|
||||
'gameId': game_id,
|
||||
'progress': status.progress,
|
||||
'downloadSpeed': status.download_rate,
|
||||
'uploadSpeed': status.upload_rate,
|
||||
|
|
@ -189,6 +189,4 @@ class TorrentDownloader:
|
|||
if status.state == 5:
|
||||
response.append(torrent_info)
|
||||
|
||||
# print(response)
|
||||
return response
|
||||
# return None
|
||||
return response
|
||||
Loading…
Add table
Add a link
Reference in a new issue