diff --git a/func.py b/func.py index b4559af..0981b0e 100644 --- a/func.py +++ b/func.py @@ -243,7 +243,7 @@ def get_tv_episodes(): current_app.logger.info("start loading tv episodes") for tv_show in tv_shows: tv_show_path = pathlib.Path(tv_show.path) - for video in sorted(tv_show_path.iterdir()): + for video in sorted((TV_SHOWS_DIRECTORY / tv_show_path).iterdir()): video_match = re.match(video_pattern, str(video)) if video_match: absolute_path = tv_show_path / video