Skip to content

Conversation

@fllesser
Copy link
Owner

No description provided.

@github-actions github-actions bot added the bug Something isn't working label Jan 31, 2026
@codecov
Copy link

codecov bot commented Jan 31, 2026

Codecov Report

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

Files with missing lines Patch % Lines
src/nonebot_plugin_parser/helper.py 20.00% 8 Missing ⚠️
src/nonebot_plugin_parser/matchers/__init__.py 0.00% 1 Missing ⚠️
src/nonebot_plugin_parser/renders/base.py 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/nonebot_plugin_parser/matchers/__init__.py 51.61% <0.00%> (ø)
src/nonebot_plugin_parser/renders/base.py 31.32% <0.00%> (ø)
src/nonebot_plugin_parser/helper.py 39.74% <20.00%> (+0.50%) ⬆️

... and 3 files with indirect coverage changes

@fllesser fllesser merged commit 92d38cc into master Jan 31, 2026
17 checks passed
@fllesser fllesser deleted the fix/helper branch January 31, 2026 06:10
@github-actions
Copy link

类型 PIL 耗时(秒) HTML 耗时(秒) 渲染所用图片总大小(MB) PIL 导出图片大小(MB) HTML 导出图片大小(MB)
微博视频2 0.01094 0.90234 0.01280 0.03694 0.17206
微博视频 0.01153 0.89851 0.01280 0.03591 0.17000
微博纯文2 0.03284 0.95885 0.00605 0.12128 0.28607
微博转发纯文 0.06667 1.13074 0.01382 0.24485 0.40196
微博转发(视频) 0.08912 1.18997 14.91427 0.37633 0.78030
微博转发(横图) 0.18025 1.33074 1.26621 0.48521 1.43761
微博转发(竖图) 0.28230 2.01097 1.33334 0.41716 2.48094
微博图集(超过9张) 0.30142 1.17236 1.01493 0.31779 0.68635
微博图集(3张) 0.32949 1.06589 2.73813 0.34429 0.93089
哔哩哔哩动态 0.33386 3.30424 0.01244 0.19168 0.42498
微博图集(2张) 0.34013 1.16078 4.88308 0.64674 1.68558
bilibili-read 0.35224 2.46795 0.47975 1.35622 2.58685
微博图集(4张) 0.39386 1.49060 2.34023 0.72903 1.69757
bilibili-opus 0.48426 2.58752 1.21296 1.35127 2.35157
微博图集(9张) 1.25345 1.87223 10.98936 0.98616 2.37885

Anyuluo996 added a commit to Anyuluo996/nonebot-plugin-parser that referenced this pull request Jan 31, 2026
合并内容:
1. 原项目的增强功能:
   - is_article() 检测 - 自动识别文章类型动态
   - 统一的 parse_bilibili_api_opus() 处理
   - DynamicMajor.desc 字段支持
   - 依赖更新 (urllib3, yt-dlp等)

2. 我们项目的保留修复:
   - 转发动态完整修复 (区分 current_info/content_source)
   - Draw 类型支持 (普通图文动态)
   - 容错处理 (_major 方法)
   - 更多的字段默认值

3. 冲突解决策略:
   - bilibili/__init__.py: 保留转发逻辑 + 合入 is_article() 检测
   - bilibili/dynamic.py: 合并 draw + desc 字段
   - 其他文件: 采用原项目的更新

相关 PR:
- upstream fllesser#444: feat(bilibili): 增强哔哩哔哩图文动态解析
- upstream fllesser#445: fix(nga, tiktok): 更新解析器的处理规则
- upstream fllesser#448: fix(helper): enhance helper to simpify code
- upstream fllesser#449-451: 依赖和 CI 更新

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants