This commit is contained in:
jxxghp
2023-10-12 18:08:09 +08:00
parent 884a0feb62
commit 1ecbc2f0be
2 changed files with 5 additions and 2 deletions

View File

@ -417,10 +417,12 @@ class DoubanModule(_ModuleBase):
"""
if imdbid:
# 优先使用IMDBID查询
logger.info(f"开始使用IMDBID {imdbid} 查询豆瓣信息 ...")
result = self.doubanapi.imdbid(imdbid)
if result:
return result
# 搜索
logger.info(f"开始使用名称 {name} 查询豆瓣信息 ...")
result = self.doubanapi.search(f"{name} {year or ''}".strip())
if not result:
logger.warn(f"未找到 {name} 的豆瓣信息")