Skip to content

Commit

Permalink
🐛 bilibili 专栏图片链接下载错误
Browse files Browse the repository at this point in the history
  • Loading branch information
fllesser committed Jan 16, 2025
1 parent 191b2ab commit 935e8e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nonebot_plugin_resolver2/matchers/bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ def accumulate_text(node):
node_type = node.get('type')
if node_type == "ImageNode":
if img_url := node.get('url', '').strip():
if img_url.startswith("http:https"):
img_url.replace("http:", "", 1)
try:
img_path = await download_img(img_url)
except Exception as e:
Expand Down

0 comments on commit 935e8e7

Please sign in to comment.