mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +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,
|
||||
'progress': status.progress,
|
||||
'downloadSpeed': status.download_rate,
|
||||
'uploadSpeed': status.upload_rate,
|
||||
'numPeers': status.num_peers,
|
||||
'numSeeds': status.num_seeds,
|
||||
'status': status.state,
|
||||
@ -158,7 +159,6 @@ class TorrentDownloader:
|
||||
}
|
||||
|
||||
if status.progress == 1:
|
||||
self.session.remove_torrent(torrent_handle)
|
||||
self.downloading_game_id = -1
|
||||
|
||||
return response
|
||||
@ -168,7 +168,7 @@ class TorrentDownloader:
|
||||
|
||||
for game_id, torrent_handle in self.torrent_handles.items():
|
||||
if game_id == self.downloading_game_id:
|
||||
return
|
||||
continue
|
||||
|
||||
status = torrent_handle.status()
|
||||
info = torrent_handle.torrent_file()
|
||||
|
Loading…
Reference in New Issue
Block a user