Skip to content

Commit

Permalink
Ensure plex is passed as named argument to PlexLibraryItem
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Oct 24, 2022
1 parent 1089969 commit 4c43e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plextraktsync/walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def get_plex_episodes(self, episodes: List[Episode]):
show = self.mf.resolve_guid(guid)
if not show:
continue
me = self.mf.resolve_any(PlexLibraryItem(pe), show)
me = self.mf.resolve_any(PlexLibraryItem(pe, plex=self.plex), show)
if not me:
continue

Expand All @@ -301,7 +301,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, self.plex)
yield PlexLibraryItem(m, plex=self.plex)

def episode_from_show(self, show: Media):
for pe in show.plex.episodes():
Expand Down

0 comments on commit 4c43e49

Please sign in to comment.