Fix relative path for tv shows

This commit is contained in:
Matthew Welch 2022-01-22 21:27:26 -08:00
parent 4665a17a3f
commit 786f70c0b0

View File

@ -193,7 +193,7 @@ def get_tv_shows():
dir_match = re.match(dir_pattern, dir.name)
if dir_match:
absolute_path = TV_SHOWS_DIRECTORY / dir
relative_path = absolute_path.relative_to(COMICS_DIRECTORY)
relative_path = absolute_path.relative_to(TV_SHOWS_DIRECTORY)
if not database.tv_show_path_in_db(str(relative_path)):
json_info = {}
if (absolute_path / "info.json").exists():