mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
fix deluge client for python3. Fixes #1626
This commit is contained in:
parent
d39a7dd234
commit
f1dc672056
1 changed files with 2 additions and 1 deletions
|
@ -88,11 +88,12 @@ class DelugeClient(object):
|
||||||
|
|
||||||
def _introspect(self):
|
def _introspect(self):
|
||||||
def splitter(value):
|
def splitter(value):
|
||||||
return value.split(b'.')
|
return value.split('.')
|
||||||
|
|
||||||
self.modules = []
|
self.modules = []
|
||||||
|
|
||||||
methods = self.remote_call('daemon.get_method_list').get()
|
methods = self.remote_call('daemon.get_method_list').get()
|
||||||
|
methods = (x.decode() for x in methods)
|
||||||
methodmap = defaultdict(dict)
|
methodmap = defaultdict(dict)
|
||||||
|
|
||||||
for module, method in imap(splitter, methods):
|
for module, method in imap(splitter, methods):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue