From 9abd780aa213637d857cf958c02037343e426082 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 29 Sep 2023 08:34:45 +0800 Subject: [PATCH] fix PersonMeta --- app/plugins/personmeta/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/plugins/personmeta/__init__.py b/app/plugins/personmeta/__init__.py index 2bbaf059b..ad3a4d764 100644 --- a/app/plugins/personmeta/__init__.py +++ b/app/plugins/personmeta/__init__.py @@ -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