Ensure item.episodes() is invoked under
NOTE: yield and do not play well. do not mix them in same
method
MODIFY
plex_trakt_sync/plex_api.py
plex_trakt_sync/plex_api.py
@@ -314,9 +314,13 @@ def watch_progress(self, view_offset):
return percent
def episodes(self):
- for ep in self.item.episodes():
+ for ep in self._get_episodes():
yield PlexLibraryItem(ep)
+ @nocache
+ def _get_episodes(self):
+ return self.item.episodes()
+
@property
@memoize
def season_number(self):

Ensure item.episodes() is invoked under @nocache

NOTE: yield and @nocache do not play well. do not mix them in same
method