Skip to content

Commit

Permalink
🐞 fix(nonebot_bison\platform\bilibili\platforms.py): 修正下播无法获取实时画面的问题
Browse files Browse the repository at this point in the history
将下播时的图片修改为封面

MountainDash#626
  • Loading branch information
gongfuture committed Sep 25, 2024
1 parent cf6b7fc commit 9da09ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot_bison/platform/bilibili/platforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def get_category(self, status: Info) -> Category:

async def parse(self, raw_post: Info) -> Post:
url = f"https://live.bilibili.com/{raw_post.room_id}"
pic = [raw_post.cover] if raw_post.category == Category(1) else [raw_post.keyframe]
pic = [raw_post.cover] if (raw_post.category == Category(1) or raw_post.category == Category(3)) else [raw_post.keyframe]
title = f"[{self.categories[raw_post.category].rstrip('提醒')}] {raw_post.title}"
target_name = f"{raw_post.uname} {raw_post.area_name}"
return Post(
Expand Down

0 comments on commit 9da09ef

Please sign in to comment.