mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 12:34:43 +00:00
revert back to aclient and add force_call
This commit is contained in:
parent
a5c58fb8dd
commit
02161ea6ef
@ -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…
x
Reference in New Issue
Block a user