projects
/
plugin.video.netflix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
484be04
)
fix(cache): Exchange type with video-list-id as cache identifier in genre sub listing
author
Sebastian Golasch
<public@asciidisco.com>
Fri, 24 Feb 2017 21:17:15 +0000
(22:17 +0100)
committer
Sebastian Golasch
<public@asciidisco.com>
Fri, 24 Feb 2017 21:17:15 +0000
(22:17 +0100)
resources/lib/Navigation.py
patch
|
blob
|
history
diff --git
a/resources/lib/Navigation.py
b/resources/lib/Navigation.py
index c89b7cec271b7aeb657e2f1c7aaa3f8c1664dffc..4ccbd290e3e2ed8fba683c59e4ecc70661c653ff 100644
(file)
--- 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
"""
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
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)
# 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'}
else:
video_list = []
actions = {'movie': 'play_video', 'show': 'season_list'}