fix douban plugin

This commit is contained in:
jxxghp 2023-07-26 15:06:22 +08:00
parent 9793c6e0a2
commit b240c0c266

View File

@ -398,7 +398,8 @@ class DoubanSync(_PluginBase):
exist_flag, no_exists = self.downloadchain.get_no_exists_info(meta=meta, mediainfo=mediainfo)
if exist_flag:
logger.info(f'{mediainfo.title_year} 媒体库中已存在')
continue
action = "exist"
else:
logger.info(f'{mediainfo.title_year} 媒体库中不存在,开始搜索 ...')
# 搜索
contexts = self.searchchain.process(mediainfo=mediainfo,
@ -434,6 +435,7 @@ class DoubanSync(_PluginBase):
username="豆瓣想看")
action = "subscribe"
# 存储历史记录
if douban_id not in [h.get("doubanid") for h in history]:
history.append({
"action": action,
"title": doubaninfo.get("title") or mediainfo.title,