From 660fb1df5364a4c4bba576e264bdd9c0affe8240 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Thu, 1 Aug 2019 18:35:54 +1200 Subject: [PATCH] fix issues with utorrent and Python3 #1642 --- libs/custom/utorrent/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/custom/utorrent/client.py b/libs/custom/utorrent/client.py index f5eaf93b..ac1a9beb 100644 --- a/libs/custom/utorrent/client.py +++ b/libs/custom/utorrent/client.py @@ -59,7 +59,7 @@ class UTorrentClient(object): url = urljoin(self.base_url, 'token.html') response = self.opener.open(url) token_re = "" - match = re.search(token_re, response.read()) + match = re.search(token_re, str(response.read())) return match.group(1) def list(self, **kwargs):