Skip to content

Commit

Permalink
fix: change Path objs to str (#389)
Browse files Browse the repository at this point in the history
Co-authored-by: Spoked <Spoked@localhost>
  • Loading branch information
dreulavelle and Spoked authored Jun 12, 2024
1 parent 2944bf0 commit 41bc74e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/program/updaters/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ def run(self, item: Union[Movie, Show, Season, Episode]) -> Generator[Union[Movi
for path in paths:
if isinstance(item, (Show, Season)):
for episode in items_to_update:
if episode.update_folder and path in episode.update_folder:
if episode.update_folder and str(path) in str(episode.update_folder):
if self._update_section(section, episode):
updated_episodes.append(episode)
section_name = section.title
updated = True
elif isinstance(item, (Movie, Episode)):
if item.update_folder and path in item.update_folder:
if item.update_folder and str(path) in str(item.update_folder):
if self._update_section(section, item):
section_name = section.title
updated = True
Expand Down

0 comments on commit 41bc74e

Please sign in to comment.