Ensure item.episodes() is invoked under
NOTE: yield and do not play well. do not mix them in same
method
@@ -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):
