20250314 增加豆瓣昵称数据字段,取自豆瓣想看原始数据中的dc:creator,适用与管理员添加多个豆瓣ID,不通ID订阅成功,发送通知时区分豆瓣用户

This commit is contained in:
Robin-PC-X1C
2025-03-14 17:31:15 +08:00
parent 47b00127cb
commit bc59cde533

View File

@@ -543,6 +543,10 @@ class DoubanSync(_PluginBase):
try:
dtype = result.get("title", "")[:2]
title = result.get("title", "")[2:]
# 增加豆瓣昵称数据来源自app.helper.rss.py
nickname = result.get("nickname","")
if nickname=="":
nickname = f"[{nickname}]"
if dtype not in ["想看"]:
logger.info(f'标题:{title},非想看数据,跳过')
continue
@@ -594,7 +598,7 @@ class DoubanSync(_PluginBase):
tmdbid=mediainfo.tmdb_id,
season=meta.begin_season,
exist_ok=True,
username=real_name or "豆瓣想看")
username=real_name or f"豆瓣{nickname}想看")
action = "subscribe"
# 存储历史记录
history.append({