X-Git-Url: http://git.code-monkey.de/?p=plugin.video.netflix.git;a=blobdiff_plain;f=resources%2Flib%2FKodiHelper.py;h=737f973041c41daf6e8d0269cec88c19c265efdd;hp=edd8313fd178cdf4020e4056a7d81b8175319088;hb=8ba617cc3e63a64aabd1eb98aebafcff85f540db;hpb=9ad06951bf5853e2c76684d4d29c8fb4471861c4 diff --git a/resources/lib/KodiHelper.py b/resources/lib/KodiHelper.py index edd8313..737f973 100644 --- a/resources/lib/KodiHelper.py +++ b/resources/lib/KodiHelper.py @@ -460,11 +460,11 @@ class KodiHelper: isFolder = False url = build_url({'action': 'play_video', 'video_id': video_list_id, 'infoLabels': infos}) else: - # it´s a show, so we need a subfolder & route (for seasons) + # it´s a show, so we need a subfolder & route (for seasons) isFolder = True params = {'action': actions[video['type']], 'show_id': video_list_id} if 'tvshowtitle' in infos: - params['tvshowtitle'] = infos['tvshowtitle'] + params['tvshowtitle'] = infos.get('tvshowtitle', '').encode('utf-8') url = build_url(params) xbmcplugin.addDirectoryItem(handle=self.plugin_handle, url=url, listitem=li, isFolder=isFolder) @@ -585,7 +585,7 @@ class KodiHelper: li = self._generate_context_menu_items(entry=season, li=li) params = {'action': 'episode_list', 'season_id': season['id']} if 'tvshowtitle' in infos: - params['tvshowtitle'] = infos['tvshowtitle'] + params['tvshowtitle'] = infos.get('tvshowtitle', '').encode('utf-8') url = build_url(params) xbmcplugin.addDirectoryItem(handle=self.plugin_handle, url=url, listitem=li, isFolder=True) @@ -806,7 +806,7 @@ class KodiHelper: quality = {'width': '1920', 'height': '1080'} li.addStreamInfo('video', quality) if 'tvshowtitle' in entry_keys: - infos.update({'tvshowtitle': entry['tvshowtitle']}) + infos.update({'tvshowtitle': entry.get('tvshowtitle', '').encode('utf-8')}) li.setInfo('video', infos) return li, infos