mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +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.exception(e)
|
||||
|
||||
return torrent_id
|
||||
|
||||
@export
|
||||
def add_torrent_url(self, url, options):
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue