Fix iterating on tv show paths
This commit is contained in:
parent
786f70c0b0
commit
7155240be5
2
func.py
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user