From 41bc74e4fdb1f03dd988923b82dec19985c9b1e1 Mon Sep 17 00:00:00 2001 From: Spoked <5782630+dreulavelle@users.noreply.github.com> Date: Tue, 11 Jun 2024 22:29:19 -0400 Subject: [PATCH] fix: change Path objs to str (#389) Co-authored-by: Spoked --- backend/program/updaters/plex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/program/updaters/plex.py b/backend/program/updaters/plex.py index 3080363e..3481ab06 100644 --- a/backend/program/updaters/plex.py +++ b/backend/program/updaters/plex.py @@ -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