From: Sebastian Golasch Date: Fri, 24 Feb 2017 21:17:15 +0000 (+0100) Subject: fix(cache): Exchange type with video-list-id as cache identifier in genre sub listing X-Git-Url: http://git.code-monkey.de/?p=plugin.video.netflix.git;a=commitdiff_plain;h=de74907ed014f3c8e74220f472a432fcb1004bc0 fix(cache): Exchange type with video-list-id as cache identifier in genre sub listing --- diff --git a/resources/lib/Navigation.py b/resources/lib/Navigation.py index c89b7ce..4ccbd29 100644 --- a/resources/lib/Navigation.py +++ b/resources/lib/Navigation.py @@ -273,8 +273,8 @@ class Navigation: type : :obj:`str` None or 'queue' f.e. when it´s a special video lists """ - if self.kodi_helper.has_cached_item(cache_id=type): - video_list = self.kodi_helper.get_cached_item(cache_id=type) + if self.kodi_helper.has_cached_item(cache_id=video_list_id): + video_list = self.kodi_helper.get_cached_item(cache_id=video_list_id) else: raw_video_list = self.netflix_session.fetch_video_list(list_id=video_list_id) # check for any errors @@ -283,7 +283,7 @@ class Navigation: # parse the video list ids if 'videos' in raw_video_list['value'].keys(): video_list = self.netflix_session.parse_video_list(response_data=raw_video_list) - self.kodi_helper.add_cached_item(cache_id=type, contents=video_list) + self.kodi_helper.add_cached_item(cache_id=video_list_id, contents=video_list) else: video_list = [] actions = {'movie': 'play_video', 'show': 'season_list'}