mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 23:48:40 +00:00
use the sclient, the aclient appears to be broken
This commit is contained in:
parent
9fb0494b2f
commit
a5c58fb8dd
1 changed files with 1 additions and 2 deletions
|
@ -267,9 +267,8 @@ class json_rpc:
|
||||||
|
|
||||||
for torrent in torrents:
|
for torrent in torrents:
|
||||||
filename = os.path.basename(torrent['path'])
|
filename = os.path.basename(torrent['path'])
|
||||||
log.debug('Adding torrent %s' % filename)
|
|
||||||
fdump = open(torrent['path'], 'r').read()
|
fdump = open(torrent['path'], 'r').read()
|
||||||
aclient.add_torrent_file_binary(filename, fdump, torrent['options'])
|
sclient.add_torrent_file_binary(filename, fdump, torrent['options'])
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
component.get("PageManager").register_page("/json/rpc",json_rpc)
|
component.get("PageManager").register_page("/json/rpc",json_rpc)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue