add logs
This commit is contained in:
parent
7e51d70cd6
commit
b1805c1a46
@ -425,9 +425,10 @@ class DoubanModule(_ModuleBase):
|
|||||||
if doubanid and not str(doubanid).isdigit():
|
if doubanid and not str(doubanid).isdigit():
|
||||||
doubanid = re.search(r"\d+", doubanid).group(0)
|
doubanid = re.search(r"\d+", doubanid).group(0)
|
||||||
result["id"] = doubanid
|
result["id"] = doubanid
|
||||||
|
logger.info(f"{imdbid} 查询到豆瓣信息:{result.get('title')}")
|
||||||
return result
|
return result
|
||||||
# 搜索
|
# 搜索
|
||||||
logger.info(f"开始使用名称 {name} 查询豆瓣信息 ...")
|
logger.info(f"开始使用名称 {name} 匹配豆瓣信息 ...")
|
||||||
result = self.doubanapi.search(f"{name} {year or ''}".strip())
|
result = self.doubanapi.search(f"{name} {year or ''}".strip())
|
||||||
if not result:
|
if not result:
|
||||||
logger.warn(f"未找到 {name} 的豆瓣信息")
|
logger.warn(f"未找到 {name} 的豆瓣信息")
|
||||||
@ -455,6 +456,7 @@ class DoubanModule(_ModuleBase):
|
|||||||
if meta.name == name \
|
if meta.name == name \
|
||||||
and ((not season and not meta.begin_season) or meta.begin_season == season) \
|
and ((not season and not meta.begin_season) or meta.begin_season == season) \
|
||||||
and (not year or item.get('year') == year):
|
and (not year or item.get('year') == year):
|
||||||
|
logger.info(f"{name} 匹配到豆瓣信息:{item.get('id')} {item.get('title')}")
|
||||||
return item
|
return item
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user