fix media exists bug

This commit is contained in:
jxxghp
2023-06-07 22:05:03 +08:00
parent 08ae0a434a
commit 5eee0f0221
4 changed files with 6 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class PlexModule(_ModuleBase):
"""
if mediainfo.type == MediaType.MOVIE:
movies = self.plex.get_movies(title=mediainfo.title, year=mediainfo.year)
if movies:
if not movies:
logger.info(f"{mediainfo.get_title_string()} 在媒体库中不存在")
return None
else: