feat(media): 添加通用 JSON API 数据源及配置编辑器 #3551
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 270 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.335
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3551"
general
weight: 0.35
Him188
中文
JSON 网站通过 POST 接口加载搜索、线路和播放信息,HTML Selector 无法直接读取这类静态页面。本 PR 添加通用
json-apiv1 数据源、配置编辑器和播放时刷新视频地址的解析支持。稀饭 Next 配置由订阅仓库单独维护:https://github.com/creamycake-anime/animeko-subs/pull/16 。该 Draft PR 依赖本功能,正式上线与客户端兼容版本由订阅维护者协调。
验证
5df4e2f的 GitHub CI:Windows x64/ARM、Linux、macOS Intel/ARM 构建,以及 Android API 30/36 和 Android TV 测试通过;Android ARM 设备测试按仓库配置跳过。iOS 运行验证尚未完成。本机私人配置迁移和 Windows 定制打包设置不包含在 PR 中。
Related to #3403.
English
JSON-backed sites load search and playback data through POST APIs that HTML selectors cannot extract from static pages. Add a generic
json-apiv1 media source with GET/POST requests, structured JSON bodies, headers, JSONPath extraction, bounded pagination, aliases, channel/episode browsing and automatic matching.Stable subject/channel/episode identifiers survive app restarts; web resolvers request fresh video URLs at playback time. API credentials are separate from video headers. The grouped forms, advanced JSON editor and adaptive tester share a validated configuration; subscription settings remain read-only.
The app includes only the generic JSON API entry. Site configurations and keys are supplied by imports or external subscriptions. Xifan Next is maintained separately in creamycake-anime/animeko-subs#16, a draft dependent on this feature.
Validation: desktop compilation and all 12 engine/editor tests pass after removing the preset. Previous-head GitHub CI passed desktop builds and Android API 30/36/TV tests. ICU placeholder syntax was verified. The earlier custom Windows package passed import, live browsing, fresh playback resolution and actual playback validation. iOS runtime validation is pending; personal profile migration and custom Windows packaging are excluded.