mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
chore: removed remove_torrent()
This commit is contained in:
parent
b55bc935f7
commit
452532e18b
@ -151,6 +151,7 @@ class TorrentDownloader:
|
|||||||
'gameId': self.downloading_game_id,
|
'gameId': self.downloading_game_id,
|
||||||
'progress': status.progress,
|
'progress': status.progress,
|
||||||
'downloadSpeed': status.download_rate,
|
'downloadSpeed': status.download_rate,
|
||||||
|
'uploadSpeed': status.upload_rate,
|
||||||
'numPeers': status.num_peers,
|
'numPeers': status.num_peers,
|
||||||
'numSeeds': status.num_seeds,
|
'numSeeds': status.num_seeds,
|
||||||
'status': status.state,
|
'status': status.state,
|
||||||
@ -158,7 +159,6 @@ class TorrentDownloader:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if status.progress == 1:
|
if status.progress == 1:
|
||||||
self.session.remove_torrent(torrent_handle)
|
|
||||||
self.downloading_game_id = -1
|
self.downloading_game_id = -1
|
||||||
|
|
||||||
return response
|
return response
|
||||||
@ -168,7 +168,7 @@ class TorrentDownloader:
|
|||||||
|
|
||||||
for game_id, torrent_handle in self.torrent_handles.items():
|
for game_id, torrent_handle in self.torrent_handles.items():
|
||||||
if game_id == self.downloading_game_id:
|
if game_id == self.downloading_game_id:
|
||||||
return
|
continue
|
||||||
|
|
||||||
status = torrent_handle.status()
|
status = torrent_handle.status()
|
||||||
info = torrent_handle.torrent_file()
|
info = torrent_handle.torrent_file()
|
||||||
|
Loading…
Reference in New Issue
Block a user