Module: deluge
Branch: master
Commit: d9d8762c8ea67ec300946894303715b8ea9f644d

Author: Nick <[email protected]>
Date:   Mon Feb 21 17:41:28 2011 +0100

add get_torrent_name

---

 deluge/ui/console/main.py |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py
index cdfb352..e7c7432 100644
--- a/deluge/ui/console/main.py
+++ b/deluge/ui/console/main.py
@@ -306,6 +306,17 @@ class ConsoleUI(component.Component):
         return ret
 
 
+    def get_torrent_name(self, torrent_id):
+        if self.interactive and hasattr(self.screen,"get_torrent_name"):
+            return self.screen.get_torrent_name(torrent_id)
+
+        for tid, name in self.torrents:
+            if torrent_id == tid:
+                return name
+        
+        return None
+
+
     def set_batch_write(self, batch):
         # only kept for legacy reasons, don't actually do anything
         pass

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to