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: