Skip to content

Conversation

@molanp
Copy link

@molanp molanp commented Jan 20, 2026

molanp and others added 2 commits January 20, 2026 22:08
- 支持解析哔哩哔哩图文动态内容,并将动态和图文信息合并为统
一接口。同时修复了代码格式化问题,优化了部分函数参数
换行以提高可读性。
- Bug: 字体资源被持续占用未释放
Fixes fllesser#433
- Bug: B站动态解析缺少图片资源
Fixes fllesser#443
- Bug: 动态解析错误
Fixes fllesser#442
@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

❌ Patch coverage is 87.50000% with 3 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../nonebot_plugin_parser/parsers/bilibili/dynamic.py 57.14% 3 Missing ⚠️
Files with missing lines Coverage Δ
...nonebot_plugin_parser/parsers/bilibili/__init__.py 70.72% <100.00%> (-0.14%) ⬇️
src/nonebot_plugin_parser/renders/common.py 86.06% <100.00%> (+0.04%) ⬆️
.../nonebot_plugin_parser/parsers/bilibili/dynamic.py 68.06% <57.14%> (+3.15%) ⬆️

... and 6 files with indirect coverage changes

molanp and others added 3 commits January 20, 2026 22:15
移除重复的opus测试函数,将测试数据合并到dynamic测试中,
统一测试逻辑并优化代码结构,提高测试效率。
移除了对动态解析结果中标题字段的非空断言,
保留了作者字段的断言以确保基本功能正常
@handle("/BV", r"bilibili\.com(?:/video)?/(?P<bvid>BV[0-9a-zA-Z]{10})(?:\?p=(?P<page_num>\d{1,3}))?")
@handle(
"/BV",
r"bilibili\.com(?:/video)?/(?P<bvid>BV[0-9a-zA-Z]{10})(?:\?p=(?P<page_num>\d{1,3}))?",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里为什么要换行

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

格式化插件自动的

@handle("/av", r"bilibili\.com(?:/video)?/av(?P<avid>\d{6,})(?:\?p=(?P<page_num>\d{1,3}))?")
@handle(
"/av",
r"bilibili\.com(?:/video)?/av(?P<avid>\d{6,})(?:\?p=(?P<page_num>\d{1,3}))?",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: B站动态解析缺少图片资源 Bug: 动态解析错误 Bug: 字体资源被持续占用未释放

2 participants