Fix relative path for tv shows
This commit is contained in:
parent
4665a17a3f
commit
786f70c0b0
2
func.py
2
func.py
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user