diff --git a/addon.xml b/addon.xml index a6fb9488..830125bd 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -13,6 +13,9 @@ all +2.3.1 +[fix] i18n UnicodeEncodeError + 2.3.0 [chg] refactor complex entry points [upd] Python 3 compat. diff --git a/changelog.txt b/changelog.txt index 4b8a7638..5ec3c8c0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +2.3.1 +[fix] i18n UnicodeEncodeError + 2.3.0 [chg] refactor complex entry points [upd] Python 3 compat. diff --git a/resources/lib/twitch_addon/addon/common/kodi.py b/resources/lib/twitch_addon/addon/common/kodi.py index e2401bd3..402b9cc9 100644 --- a/resources/lib/twitch_addon/addon/common/kodi.py +++ b/resources/lib/twitch_addon/addon/common/kodi.py @@ -366,7 +366,7 @@ def i18n(self, string_id): if PY3: return addon.getLocalizedString(self.strings[string_id]) else: - return addon.getLocalizedString(self.strings[string_id]).encode('utf-8', 'ignore').decode('utf-8') + return addon.getLocalizedString(self.strings[string_id]).encode('utf-8', 'ignore') except Exception as e: xbmc.log('%s: Failed String Lookup: %s (%s)' % (get_name(), string_id, e), xbmc.LOGWARNING) return string_id