feat:媒体搜索聚合开关

This commit is contained in:
jxxghp
2024-04-28 08:55:07 +08:00
parent 6404f9d45c
commit 71c6a3718b
5 changed files with 33 additions and 0 deletions

View File

@ -227,6 +227,8 @@ class TheMovieDbModule(_ModuleBase):
:param meta: 识别的元数据
:reutrn: 媒体信息列表
"""
if settings.SEARCH_SOURCE and "themoviedb" not in settings.SEARCH_SOURCE:
return None
if not meta.name:
return []
if meta.type == MediaType.UNKNOWN and not meta.year: