Skip to content

Commit 683f82d

Browse files
committed
Fix reading/writing favourite shows
1 parent d5cfb83 commit 683f82d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/srgssr.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def __init__(self, plugin_handle, bu='srf', addon_id=ADDON_ID):
106106
self.storage_manager = StorageManager(self)
107107
self.youtube_builder = YoutubeBuilder(self)
108108

109-
# TODO: Move this to storage manager:
110109
# Delete temporary subtitle files urn*.vtt
111110
clean_dir = 'special://temp'
112111
_, filenames = xbmcvfs.listdir(clean_dir)
@@ -309,7 +308,7 @@ def manage_favourite_shows(self):
309308
his/her personal favourite show list.
310309
"""
311310
show_list = self.read_all_available_shows()
312-
stored_favids = self.read_favourite_show_ids()
311+
stored_favids = self.storage_manager.read_favourite_show_ids()
313312
names = [x['title'] for x in show_list]
314313
ids = [x['id'] for x in show_list]
315314

@@ -331,4 +330,4 @@ def manage_favourite_shows(self):
331330
# Keep the old show ids:
332331
new_favids += ancient_ids
333332

334-
self.write_favourite_show_ids(new_favids)
333+
self.storage_manager.write_favourite_show_ids(new_favids)

0 commit comments

Comments
 (0)