From ac79938c20768ac003755eced98f9b2022d89364 Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Fri, 1 Jun 2012 22:06:09 +0200 Subject: [PATCH] Fixed a minor problem with events on torrent addition --- deluge/ui/console/eventlog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/console/eventlog.py b/deluge/ui/console/eventlog.py index 264b055a7..b82f5beda 100644 --- a/deluge/ui/console/eventlog.py +++ b/deluge/ui/console/eventlog.py @@ -71,13 +71,13 @@ class EventLog(component.Component): def on_torrent_added_event(self, torrent_id, from_state): if from_state: return def on_torrent_status(status): - self.write("{!green!}Torrent Added{!input!}(from_state=%s): {!info!}%s (%s)" % ( - from_state, status["name"], torrent_id) + self.write("{!green!}Torrent Added: {!info!}%s (%s)" % ( + status["name"], torrent_id) ) #Write out what state the added torrent took self.on_torrent_state_changed_event(torrent_id, status["state"]) - client.core.get_torrent_status(torrent_id, ["name"]).addCallback(on_torrent_status) + client.core.get_torrent_status(torrent_id, ["name", "state"]).addCallback(on_torrent_status) def on_torrent_removed_event(self, torrent_id): self.write("{!red!}Torrent Removed: {!info!}%s (%s)" %