Author: andar

Revision: 5445

Log:
        Have add_torrent_file return a torrent_id on successful add

Diff:
Modified: trunk/deluge/core/core.py
===================================================================
--- trunk/deluge/core/core.py   2009-07-04 17:05:50 UTC (rev 5444)
+++ trunk/deluge/core/core.py   2009-07-04 22:52:41 UTC (rev 5445)
@@ -258,6 +258,8 @@
             log.error("There was an error adding the torrent file %s", 
filename)
             log.exception(e)
 
+        return torrent_id
+
     @export
     def add_torrent_url(self, url, options):
         """



--~--~---------~--~----~------------~-------~--~----~
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