mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Have add_torrent_file return a torrent_id on successful add
This commit is contained in:
parent
191d83c4be
commit
061cd96096
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue