From 061cd960966fcd962e8f06903e0d6fb28fac22f4 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 4 Jul 2009 22:52:41 +0000 Subject: [PATCH] Have add_torrent_file return a torrent_id on successful add --- deluge/core/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/core/core.py b/deluge/core/core.py index f41a5a3bb..f6614279d 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -258,6 +258,8 @@ class Core(component.Component): 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): """