From 2f8ec4defac23bcbe471721c6116693809b1b49a Mon Sep 17 00:00:00 2001 From: maxkoryukov Date: Mon, 1 Feb 2016 04:25:00 +0500 Subject: [PATCH] RPC calls for RT-0.9.6 are fixed --- libs/rtorrent/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/rtorrent/__init__.py b/libs/rtorrent/__init__.py index d7af452..f283d92 100755 --- a/libs/rtorrent/__init__.py +++ b/libs/rtorrent/__init__.py @@ -171,7 +171,9 @@ class RTorrent: func_name = self._get_load_function("raw", start, verbose) # load torrent - getattr(p, func_name)(torrent) + # rtorrent > 0.9.6 requires first parameter @target + target = "" + getattr(p, func_name)(target, torrent) if verify_load: i = 0 @@ -233,7 +235,9 @@ class RTorrent: elif file_type == "url": finput = torrent - getattr(p, func_name)(finput) + # rtorrent > 0.9.6 requires first parameter @target + target = "" + getattr(p, func_name)(target, finput) def get_views(self): p = self._get_conn()