Fix iterating on tv show paths

This commit is contained in:
Matthew Welch 2022-01-22 21:36:08 -08:00
parent 786f70c0b0
commit 7155240be5

View File

@ -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