Files
MemRelay/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/Checkpoint 2026-10-21 14-54-26 UTC [8c401c444b].md
T
memrelay 26b59842e4 create: Checkpoint 2026-10-21 14:54:26 UTC [8c401c444b]
MemRelay-Operation: checkpoint-save:huangdou-checkpoint-20261021-handoff
MemRelay-Resource: 6e219d03-07a7-4176-bd16-d1bdc092c704
2026-10-21 22:54:30 +08:00

26 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-10-21 14:54:26 UTC [8c401c444b]
type: checkpoint
permalink: main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/checkpoint-2026-10-21-14-54-26-utc-8c401c444b
stable_id: 6e219d03-07a7-4176-bd16-d1bdc092c704
scope: project
memory_type: checkpoint
project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: huangdou-checkpoint-20261021-handoff
created_at: '2026-10-21T14:54:26.778349+00:00'
updated_at: '2026-10-21T14:54:26.778349+00:00'
tags:
- huangdou
- handoff
---
完成:feat/huangdou 已接入黄豆短剧。登录页左侧可切 RaptDrama / 黄豆短剧;黄豆用 POST /api/huangdou/login/device 自动分配设备账号,账号密码登录后做。清单走 navList.filters + /drama/list;会员/金币专区有剧目,限时免费当前空。下载与播放隔离在 /api/huangdou、cache/huangdou、download/huangdou。
原因:用户要整个平台做完,先用设备账号,VIP 集预留字段。
关键实现:加密 POST + MD5 签名;ApiError 不跨主机重试;HLS 走 video.m3u8 + enc.key,试看 MP4 走 is_direct_media 直下;播放 /play/{vid}/{cid}/index.m3u8 或 /file。
验证:tests/test_huangdou_crypto.py、test_huangdou_media.py、test_audio_remux.py 通过。浏览器 http://localhost:8799 进入黄豆,清单分类有数,播放第1集 HLS 与第2集 10.5s 试看 MP4,VIP 集显示锁定原因。下载一部剧 4 集(1、9 完整 HLS,2、3 试看 MP4),ffmpeg 确认都有 h264+aac。
问题与解决:试看地址是 preview-r10.mp4,当 m3u8 拉会卡在统计清单;改成直下文件。
下一步:账号密码登录;拿到 VIP 账号后再解锁付费集。
给下个会话:分支 feat/huangdou。不要改窗口 1080×800 和背景 #363636。不要把 token、CDN 签名、设备账号写进记忆。密钥在 server/services/huangdou/crypto.py。cache/huangdou/session.json 已 gitignore。实测 MP4 在 download/huangdou-verify,不要提交。不要在打包时重新下载 adb/WebView2。