Skip to content

M4:我的(登录账号的站点内容) - #8

Merged
chialecode merged 1 commit into
mainfrom
codex/m4-account
Nov 16, 2026
Merged

chialecode merged 1 commit into
mainfrom
codex/m4-account

Conversation

@chialecode

Copy link
Copy Markdown
Owner

M4 阶段的单一 DCO 提交:图标栏新增“我的”,集中浏览登录账号在哔哩哔哩和抖音上的内容;同时包含五轮实机反馈的调整。

  • 我的(DEC-047):哔哩哔哩的关注、收藏夹、稍后再看、历史记录;抖音的关注、喜欢、收藏。点开就是解析里的详情页。
  • 任务与缓存队列(DEC-049~051、DEC-057):
    • “全部缓存”的后台慢速缓存队列,记在 cache-queue.json,版本 1;
    • 任务页上下文侧栏,缓存队列改为卡片,并显示封面;
    • 直播录制不限数量,可页内实时预览,“录制异常”逐场列出;
    • 结束的队列、最近结束的录制和录制异常都可以删除,不删已缓存的文件。
  • 主页(DEC-053、DEC-057):
    • 每个站点筛选记住上次阅读位置;
    • 侧栏订阅列表带未读圆点;
    • 已订阅作者的头像打开所属订阅;
    • 切换站点筛选不再重新解码图片:首屏从 2.4~3.5 秒降到约 0.7 秒,切回约 10 ms。
  • 存放位置(DEC-056):
    • 转发和转发里的视频存到转发者的 forwards/,媒体库新增“转发”筛选;
    • 哔哩哔哩合作视频存到为之缓存的那位成员下。
  • 订阅(DEC-051、DEC-054、DEC-057、DEC-058):
    • 订阅详情分“内容 / 账号”两栏;
    • 缓存规则可批量指定订阅,内置一条不可修改、全部关闭的“默认”规则;
    • 新增“全部账号”页面;
    • 订阅一个账号时弹窗,可加入现有订阅(支持搜索)或新建订阅。
  • 其他:
    • 设置新增“更新”页;托盘菜单改为原生菜单;媒体库新增“刷新”;
    • 修复直播收尾转换失败、HLS 序号重置被误判为丢片、空数组接口;
    • 抖音私密账号照常请求作品:当前登录账号能看到的就列出。
  • 数据:结构版本仍为 2。新增独立文件 cache-queue.json 和 update-history.json(都是版本 1)。以下新增都是可选字段或索引,旧版程序会忽略:
    • 可选字段 item.json 的 live.incidents、via;
    • 可选字段 ui-state.json 的 homePositions、dismissedLiveSessions;
    • 索引 library.db 的 idx_library_items_via。
  • 验证:
    • go run ./tools/check 全部通过;GOOS=linux go vet ./... 通过;
    • tools/uishots 57 个场景、171 张截图全部通过;
    • tools/smoke 通过,stealFocusDetected=false;
    • ACT-020 真实站点检查的结果见阶段报告。
  • 未验收:H-001 第 28~33 步的实机复查仍为 not-run(第 33 步 ⑧ 抖音私密账号已由用户确认)。go test -race 也是 not-run。合并不代表产品验收。

详见 docs/delivery/stage-report.md(§6~§17)与 USER-ACTIONS.md 的 ACT-021。

A 集中审查:§6(M4 主体)、§9、§12(第一、二轮反馈)、§17(第四轮 B 的实现、第五轮自审与 DEC-058)。§17 修复了 3 个 P2:

  • F-001:界面写 ui-state.json 时会覆盖更新器写入的“待重启版本”,改为加锁后只改自己的字段;
  • F-002:抖音私密账号遇到风控、限流时被显示成“看不到作品”,改为原样报错并可重试;
  • F-003:切换速度测试按耗时判断,改为检查切回时有没有重新解码。

…unds 1-5

Add rail entry "我的" (DEC-047) with per-site accordion groups for signed-in
Bilibili and Douyin account lists, and incorporate first- and second-round
device feedback (DEC-049, DEC-050, DEC-051):

- AccountService & Mine UI (DEC-047): read-only, in-memory Bilibili followings,
  favourite folders, watch later (WBI) and day-grouped history, plus Douyin
  followings, likes (browser-only notice without tripping site backoff) and
  collections (form POST body fed into a_bogus); unsupported Douyin cards stay
  non-clickable
- Parse & offline Library (DEC-049, DEC-051): /parse shares the recent-parse
  context sidebar with /video and /user (in-page fallback below 1000px); Media
  Library sorts strictly by publish time, opens /library/item purely offline,
  and removes empty type/author directories when deleting an author's last item
- Background Cache Queue (DEC-050): replace 10/20/50 batch enqueue on user pages
  with "全部缓存" persisted in cache-queue.json (v1, existing v2 schemas
  unchanged), pacing 1 item at a time with 40-150s random intervals, 10-25m long
  rests every 15-25 items, and shared per-site hourly quota and backoff
- Unlimited Live Recordings, Preview & Incidents (DEC-049, DEC-050, DEC-051):
  remove concurrent recording cap; in-page read-only Media Foundation preview of
  growing HLS/FLV fMP4 .part files with synchronous handle release; record
  optional live.incidents (reconnect, lost_segments, slow, disk, convert_failed)
  with inline "⚠ N 处异常" badges and "任务 › 录制异常" per-session view
- Subscription Detail & Batch Rules (DEC-051): Subscription Detail switches to
  offline cross-site "内容" feed (default) and unified "账号" live/recording
  rows (normalizing legacy live -> accounts); Settings "缓存规则" adds
  "选择订阅…" batch assignment via single-write SetSubscriptionsRule; local
  avatars stored for both Bilibili and Douyin
- Settings Update Page, Tray & Crash Diagnostics (DEC-050, DEC-051): add
  "设置 › 更新" above "关于" with update-history.json (v1: latest 20 checks and
  50 updates, local dev install prompt without network checks), native 2-item
  tray menu, deduplicated task status logs, and crash.log rotation
- Home Reading Position & Subscription Dots (DEC-053): each site filter keeps
  its reading position in optional ui-state.json homePositions (schema 2) and
  a new session reopens there, newer posts loading above without moving the
  rows in view; the Home panel lists subscriptions without section titles,
  live first (ringed), then unread (accent dot) and read, ordered once per
  entry to Home, virtualized, with a narrow-window avatar strip
- Round-4 fixes (DEC-054, DEC-055): live finalize checks the fragment
  timeline instead of EXTINF sums, HLS sequence resets are not lost segments,
  empty-array API data, a locked all-off default cache rule, and a library
  "刷新" listing files deleted outside TRACE
- Round-5 changes (DEC-056, DEC-057): forwards and the videos they carry go
  to the forwarder's forwards/ folder with an optional item.json "via" and a
  "转发" library filter; collab videos cached for a staff member go under that
  member; task-page records are removable, cache queues become cards with
  covers; rail mark is not a button; Home avatars open the subscription;
  site switching reuses size-matched decoded thumbnails (LRU) and a 3s
  directory-link check cache; "订阅 › 全部账号"; Douyin private accounts
  still request works the signed-in account can see
- Review & DEC-058: UI writes to ui-state.json mutate one field under the
  store lock so the updater's ready version is not overwritten; private
  Douyin accounts report risk control and rate limits with a retry; a
  "加入订阅" dialog joins an existing subscription (search) or starts one
  from user pages, 我的 and 添加订阅
- Validation & D1 (DEC-048): dependency inventory (due=0) and govulncheck audit
  pass (go 1.27.4, golang.org/x/sys v0.50.0); 57 uishots scenes (171 PNGs);
  ACT-020 Bilibili lists, Douyin followings and collection pass, manual checks
  not-run

Signed-off-by: chialecode <315431287+chialecode@users.noreply.github.com>
@chialecode
chialecode merged commit a613735 into main Nov 16, 2026
3 checks passed
@chialecode
chialecode deleted the codex/m4-account branch November 16, 2026 17:49
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.

1 participant