From 64b4255b94337b12ba8f0c0690700ec6b84c0122 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 24 Apr 2009 22:52:19 +0000 Subject: [PATCH] Fix adding torrent to list on TorrentAddedEvent --- deluge/ui/console/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py index 99599adf3..8ec0edc64 100644 --- a/deluge/ui/console/main.py +++ b/deluge/ui/console/main.py @@ -336,7 +336,7 @@ class ConsoleUI(component.Component): def on_torrent_added_event(self, torrent_id): def on_torrent_status(status): 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): for index, (tid, name) in enumerate(self.torrents):