From a5c58fb8ddddb950d48b0d9d13c160035fa2684f Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 13 Oct 2008 18:19:21 +0000 Subject: [PATCH] use the sclient, the aclient appears to be broken --- deluge/ui/webui/json_api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deluge/ui/webui/json_api.py b/deluge/ui/webui/json_api.py index 6e04ce63d..45501cbf9 100644 --- a/deluge/ui/webui/json_api.py +++ b/deluge/ui/webui/json_api.py @@ -267,9 +267,8 @@ class json_rpc: for torrent in torrents: filename = os.path.basename(torrent['path']) - log.debug('Adding torrent %s' % filename) 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(): component.get("PageManager").register_page("/json/rpc",json_rpc)