Pass plex to PlexLibraryItem for better userRatings fetching
MODIFY
plextraktsync/plex_api.py
plextraktsync/plex_api.py
@@ -335,7 +335,7 @@ def watch_progress(self, view_offset):
def episodes(self):
for ep in self._get_episodes():
- yield PlexLibraryItem(ep)
+ yield PlexLibraryItem(ep, self.plex)
@nocache
@rate_limit()

MODIFY
plextraktsync/walker.py
plextraktsync/walker.py
@@ -270,7 +270,7 @@ def media_from_sections(self, sections: List[PlexLibrarySection]):
def media_from_items(self, libtype: str, items: List):
it = self.progressbar(items, desc=f"Processing {libtype}s")
for m in it:
- yield PlexLibraryItem(m)
+ yield PlexLibraryItem(m, self.plex)
def episode_from_show(self, show: Media):
for pe in show.plex.episodes():

Pass plex to PlexLibraryItem for better userRatings fetching