From b4f142c01d83819a7cad1d85057a1ce9beb865ca Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 14 Sep 2018 04:03:33 -0500 Subject: [PATCH] Fix subtitles encoding --- resources/lib/helper/playutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/helper/playutils.py b/resources/lib/helper/playutils.py index 0c1d371b..8e9df5f7 100644 --- a/resources/lib/helper/playutils.py +++ b/resources/lib/helper/playutils.py @@ -441,7 +441,7 @@ class PlayUtils(object): LOG.info("[ subtitles/%s ] %s", index, url) if 'Language' in stream: - filename = "Stream.%s.%s" % (stream['Language'].encode('utf-8'), stream['Codec']) + filename = "Stream.%s.%s" % (stream['Language'].encode('utf-8'), stream['Codec'].encode('utf-8')) try: subs.append(self.download_external_subs(url, filename))