Updated rTorrent library and fixed some issues with ratio setup.

This commit is contained in:
Dean Gardiner
2013-08-12 15:32:15 +12:00
parent 0bdffc5036
commit 2bb2e28f91
2 changed files with 25 additions and 23 deletions
+4 -8
View File
@@ -64,16 +64,12 @@ class Group:
multicall.call()
def enable(self):
m = rtorrent.rpc.Multicall(self)
self.multicall_add(m, self._get_prefix() + 'enable')
return(m.call()[-1])
p = self._rt_obj._get_conn()
return getattr(p, self._get_prefix() + 'enable')()
def disable(self):
m = rtorrent.rpc.Multicall(self)
self.multicall_add(m, self._get_prefix() + 'disable')
return(m.call()[-1])
p = self._rt_obj._get_conn()
return getattr(p, self._get_prefix() + 'disable')()
def set_command(self, *methods):
methods = [m + '=' for m in methods]