fix issues with utorrent and Python3 #1642

This commit is contained in:
clinton-hall 2019-08-01 18:35:54 +12:00
commit 660fb1df53

View file

@ -59,7 +59,7 @@ class UTorrentClient(object):
url = urljoin(self.base_url, 'token.html')
response = self.opener.open(url)
token_re = "<div id='token' style='display:none;'>([^<>]+)</div>"
match = re.search(token_re, response.read())
match = re.search(token_re, str(response.read()))
return match.group(1)
def list(self, **kwargs):