From: E.Smith <31170571+azlm8t@users.noreply.github.com> Date: Tue, 14 May 2019 16:50:14 +0000 (+0100) Subject: fanart: Fix decode error. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0fad819003f67d4569ea189f2f48a53367c1bd5;p=thirdparty%2Ftvheadend.git fanart: Fix decode error. The text returned from the server is utf-8 so needs an explicit decode otherwise it defaults to ASCII and fails for programmes with non-ASCII titles. --- diff --git a/support/tvhmeta b/support/tvhmeta index ae205fee9..4111ca6c4 100755 --- a/support/tvhmeta +++ b/support/tvhmeta @@ -148,7 +148,8 @@ class TvhMeta(object): logging.info("Sending %s to %s" % (data, full_url)) req = urlopen(full_url, data=bytearray(data, 'utf-8')) - ret = req.read().decode() + resp = req.read(); + ret = resp.decode('utf-8', errors='replace') logging.debug("Received: %s", ret) return ret