mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-19 22:58:30 +00:00
Fix adding torrent to list on TorrentAddedEvent
This commit is contained in:
parent
b2626ea6aa
commit
64b4255b94
@ -336,7 +336,7 @@ class ConsoleUI(component.Component):
|
|||||||
def on_torrent_added_event(self, torrent_id):
|
def on_torrent_added_event(self, torrent_id):
|
||||||
def on_torrent_status(status):
|
def on_torrent_status(status):
|
||||||
self.torrents.append((torrent_id, status["name"]))
|
self.torrents.append((torrent_id, status["name"]))
|
||||||
client.get_torrent_status(torrent_id, ["name"]).addCallback(on_torrent_status)
|
client.core.get_torrent_status(torrent_id, ["name"]).addCallback(on_torrent_status)
|
||||||
|
|
||||||
def on_torrent_removed_event(self, torrent_id):
|
def on_torrent_removed_event(self, torrent_id):
|
||||||
for index, (tid, name) in enumerate(self.torrents):
|
for index, (tid, name) in enumerate(self.torrents):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user