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

@ -544,6 +544,8 @@ class DoubanModule(_ModuleBase):
:param meta: 识别的元数据
:reutrn: 媒体信息
"""
if settings.SEARCH_SOURCE and "douban" not in settings.SEARCH_SOURCE:
return None
if not meta.name:
return []
result = self.doubanapi.search(meta.name)