From 72e0c7fdb57ad4201c871331d3baa442462bc6aa Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Thu, 28 Dec 2023 01:31:52 +0800 Subject: [PATCH] =?UTF-8?q?fix=F0=9F=90=9B:=20=E4=BF=AE=E5=A4=8DB=E7=AB=99?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E8=8E=B7=E5=8F=96=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=EF=BC=8C=E4=BC=9A=E5=8F=91=E9=80=81=E7=A9=BA?= =?UTF-8?q?=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ plugins/bilibili_sub/__init__.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ef72b4a1..ad1eaaac 100644 --- a/README.md +++ b/README.md @@ -335,6 +335,10 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能 ## 更新 +### 2023/12/28 + +* 修复B站动态获取失败的时候,会发送空消息 + ### 2023/9/6 * 修正b站订阅 diff --git a/plugins/bilibili_sub/__init__.py b/plugins/bilibili_sub/__init__.py index c71c3223..34879661 100755 --- a/plugins/bilibili_sub/__init__.py +++ b/plugins/bilibili_sub/__init__.py @@ -278,7 +278,7 @@ async def send_sub_msg(rst: str, sub: BilibiliSub, bot: Bot): :param bot: Bot """ temp_group = [] - if rst: + if rst and rst.strip(): for x in sub.sub_users.split(",")[:-1]: try: if ":" in x and x.split(":")[1] not in temp_group: