mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-22 12:34:50 +00:00
revert back to aclient and add force_call
This commit is contained in:
parent
a5c58fb8dd
commit
02161ea6ef
1 changed files with 2 additions and 1 deletions
|
@ -268,7 +268,8 @@ class json_rpc:
|
|||
for torrent in torrents:
|
||||
filename = os.path.basename(torrent['path'])
|
||||
fdump = open(torrent['path'], 'r').read()
|
||||
sclient.add_torrent_file_binary(filename, fdump, torrent['options'])
|
||||
aclient.add_torrent_file_binary(filename, fdump, torrent['options'])
|
||||
aclient.force_call()
|
||||
|
||||
def register():
|
||||
component.get("PageManager").register_page("/json/rpc",json_rpc)
|
||||
|
|
Loading…
Add table
Reference in a new issue