Have add_torrent_file return a torrent_id on successful add

This commit is contained in:
Andrew Resch 2009-07-04 22:52:41 +00:00
parent 191d83c4be
commit 061cd96096
1 changed files with 2 additions and 0 deletions

View File

@ -258,6 +258,8 @@ class Core(component.Component):
log.error("There was an error adding the torrent file %s", filename) log.error("There was an error adding the torrent file %s", filename)
log.exception(e) log.exception(e)
return torrent_id
@export @export
def add_torrent_url(self, url, options): def add_torrent_url(self, url, options):
""" """