Repository navigation
feat(bilibili): 收藏夹笔记串行生成与历史批量导出 - #463
Open
muuuuuuushroom wants to merge 2 commits into
Open
muuuuuuushroom wants to merge 2 commits into
muuuuuuushroom wants to merge 2 commits into
Conversation
muuuuuuushroom
force-pushed
the
feature/bilibili-favorite-batch
branch
from
October 20, 2026 17:44
187aacd to
c39d645
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动概述
支持按用户收藏夹顺序批量生成视频笔记,并在生成历史中按收藏夹筛选、批量导出所选视频的 Markdown 文档。
为什么
私有收藏夹中的视频需要逐条使用相同配置处理;完成后也需要按收藏夹整理结果并一次性导出,避免逐个查找和下载。
做了什么
测试方式
corepack pnpm@9.15.0 run build通过。python -m unittest tests.test_favorites通过(6 项)。python -m py_compile app/__init__.py app/routers/favorites.py通过。git diff --check通过;与master对比未发现新增 ESLint 诊断。前端
package.json未定义typecheck脚本,因此无法按贡献指南运行pnpm typecheck;生产构建已通过。回归风险
改动影响收藏夹批处理接口和历史记录交互;单视频笔记流程保持原有调用路径。批处理按顺序执行,失败项按接口返回状态处理。
部署影响
前后端需一并部署;无需额外配置迁移。
Checklist
master(上游当前没有develop分支;仓库近期 PR 也有合入master的先例)。type(scope): subject格式。.env或大型二进制文件。后续修复
page表示一个收藏项包含的分 P 数量;此前只保留了 BV 号,导致多 P 视频始终处理第 1 P。?p=1、?p=2等独立任务,并使用视频 + P 序号作为唯一键,避免状态和选择互相覆盖。x/web-interface/view的pages[].part获取;生成任务额外携带该名称,覆盖下载器的默认标题,确保历史记录、Markdown 预览和批量导出文件名一致。标题数据分工
audioMeta.title显示,保持与ae67b87一致。favoriteVideo数据结构,保存每个收藏视频/分 P 的小标题。