From bc59cde53352769342afb7c8438231395eed6b73 Mon Sep 17 00:00:00 2001 From: Robin-PC-X1C Date: Fri, 14 Mar 2025 17:31:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?20250314=20=E5=A2=9E=E5=8A=A0=E8=B1=86?= =?UTF-8?q?=E7=93=A3=E6=98=B5=E7=A7=B0=E6=95=B0=E6=8D=AE=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=EF=BC=8C=E5=8F=96=E8=87=AA=E8=B1=86=E7=93=A3=E6=83=B3=E7=9C=8B?= =?UTF-8?q?=E5=8E=9F=E5=A7=8B=E6=95=B0=E6=8D=AE=E4=B8=AD=E7=9A=84dc:creato?= =?UTF-8?q?r=EF=BC=8C=E9=80=82=E7=94=A8=E4=B8=8E=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E6=B7=BB=E5=8A=A0=E5=A4=9A=E4=B8=AA=E8=B1=86=E7=93=A3?= =?UTF-8?q?ID=EF=BC=8C=E4=B8=8D=E9=80=9AID=E8=AE=A2=E9=98=85=E6=88=90?= =?UTF-8?q?=E5=8A=9F=EF=BC=8C=E5=8F=91=E9=80=81=E9=80=9A=E7=9F=A5=E6=97=B6?= =?UTF-8?q?=E5=8C=BA=E5=88=86=E8=B1=86=E7=93=A3=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins.v2/doubansync/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins.v2/doubansync/__init__.py b/plugins.v2/doubansync/__init__.py index 3c202ab..af798b0 100644 --- a/plugins.v2/doubansync/__init__.py +++ b/plugins.v2/doubansync/__init__.py @@ -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({ From 2df65736b50b9761cfc47048b6098137dc72a6eb Mon Sep 17 00:00:00 2001 From: fanrongbin <66864615+fanrongbin@users.noreply.github.com> Date: Sat, 15 Mar 2025 14:41:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20=E8=B1=86=E7=93=A3=E6=83=B3=E7=9C=8B?= =?UTF-8?q?=E8=AE=A2=E9=98=85=E9=80=9A=E7=9F=A5=E6=9C=AA=E8=83=BD=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E6=90=BA=E5=B8=A6=E8=B1=86=E7=93=A3=E6=98=B5=E7=A7=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins.v2/doubansync/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.v2/doubansync/__init__.py b/plugins.v2/doubansync/__init__.py index af798b0..5c4144d 100644 --- a/plugins.v2/doubansync/__init__.py +++ b/plugins.v2/doubansync/__init__.py @@ -545,7 +545,7 @@ class DoubanSync(_PluginBase): title = result.get("title", "")[2:] # 增加豆瓣昵称,数据来源自app.helper.rss.py nickname = result.get("nickname","") - if nickname=="": + if nickname: nickname = f"[{nickname}]" if dtype not in ["想看"]: logger.info(f'标题:{title},非想看数据,跳过')