diff --git a/addon.xml b/addon.xml index 830125bd..a29a047b 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -13,6 +13,9 @@ all +2.3.2 +[fix] py3 encoding issues + 2.3.1 [fix] i18n UnicodeEncodeError diff --git a/resources/lib/twitch_addon/addon/converter.py b/resources/lib/twitch_addon/addon/converter.py index a64db5c5..0c0d9b9d 100644 --- a/resources/lib/twitch_addon/addon/converter.py +++ b/resources/lib/twitch_addon/addon/converter.py @@ -64,7 +64,7 @@ def game_to_listitem(self, game): viewer_count = str(game[Keys.VIEWERS]) if Keys.GAME in game: game = game[Keys.GAME] - name = game[Keys.NAME].encode('utf-8') + name = game[Keys.NAME] if not name: name = i18n('unknown_game') image = self.get_thumbnail(game.get(Keys.BOX, game.get(Keys.LOGO)), Images.BOXART) @@ -81,9 +81,9 @@ def game_to_listitem(self, game): 'info': {u'plot': plot, u'plotoutline': plot, u'tagline': plot}} def community_to_listitem(self, community): - name = community[Keys.NAME].encode('utf-8') + name = community[Keys.NAME] display_name = community.get(Keys.DISPLAY_NAME) - display_name = display_name.encode('utf-8') if display_name else name + display_name = display_name if display_name else name _id = community[Keys._ID] image = community.get(Keys.AVATAR_IMAGE, Images.THUMB) context_menu = list() @@ -97,7 +97,7 @@ def community_to_listitem(self, community): 'info': self.get_plot_for_community(community)} def collection_to_listitem(self, collection): - title = collection[Keys.TITLE].encode('utf-8') + title = collection[Keys.TITLE] _id = collection[Keys._ID] image = self.get_thumbnail(collection[Keys.THUMBNAILS]) owner = collection[Keys.OWNER]