Skip to content

Commit

Permalink
fix PersonMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Sep 29, 2023
1 parent 2e89eec commit 9abd780
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/plugins/personmeta/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ def scrap_rt(self, event: Event):
# 电影
if mediainfo.type == MediaType.MOVIE:
# nfo文件
nfofile = filepath.with_name("movie.nfo")
nfofile = filepath / "movie.nfo"
if not nfofile.exists():
nfofile = filepath.parent / f"{filepath.stem}.nfo"
nfofile = filepath / f"{filepath.stem}.nfo"
if not nfofile.exists():
logger.warning(f"电影nfo文件不存在:{nfofile}")
return
else:
# nfo文件
nfofile = filepath.parent.with_name("tvshow.nfo")
nfofile = filepath.with_name("tvshow.nfo")
if not nfofile.exists():
logger.warning(f"剧集nfo文件不存在:{nfofile}")
return
Expand Down

0 comments on commit 9abd780

Please sign in to comment.