48 Commits

Author SHA1 Message Date
jxxghp
c4e812926e fix(mediaserver,architecture): 补全流式票据兼容、英文翻译与存储模块契约 2026-11-26 00:08:45 +08:00
jxxghp
a8398e220d feat(mediaserver): add unified live playback session sync and per-user account bindings 2026-11-25 15:04:13 +08:00
jxxghp
b22ba45a3c fix(download): guard unconfirmed downloader admissions against duplicate retries
严格区分“下载器明确拒绝”与“添加已受理但任务信息尚未确认”,解决 qBittorrent/rTorrent 异步队列积压导致确认超时后,订阅连续提交多个重复版本且缺少下载历史的问题:

- 新增待确认下载契约、confirm_pending_download 模块能力及 downloadpending 恢复状态表与迁移
- qBittorrent 临时标签轮询超时后按已知 v1/v2 infohash 兜底识别,并三下载器统一支持延迟落地确认与暂停选集补收尾
- 下载链遇到未确认状态时持久化脱敏待确认记录、不计普通失败冷却,并按电影/音乐整体或电视剧季/集精确阻断同目标换源
- 订阅搜索/匹配/刷新与整理扫描前自动核对待确认记录:任务出现后幂等补记下载历史并收敛订阅状态,查询出错绝不误释放,仅超期且明确未找到或被拒绝时释放
- 补齐 20 项回归测试并同步架构、导出清单与数据库技能文档快照

Refs #7551
2026-11-23 15:21:32 +08:00
jxxghp
a6cf75466f fix(download): project IMDb identity to TMDB when adding downloads
补充 IMDb -> TMDB 身份投影(经 TMDB /find/{imdb_id} 精确查找并补全本地化详情),并在 RECOGNIZE_SOURCE=themoviedb 时于 /api/v1/download/add 将 IMDb 及站点资源自带的非 TMDB 线索优先转换为 TMDB 主身份,转换或识别失败时无污染回退原来源;同步扩展订阅元数据巡检对 IMDb 身份的重试转换。

Refs #7550
2026-11-23 14:45:40 +08:00
jxxghp
bdbaf29429 feat(mediaserver): add unified browse, filter, 3-level detail, track selection, and progress APIs across all media servers 2026-11-22 18:15:47 +08:00
ChantXu64
b8c3465de6 fix(download): 同一季包已有任务时按目标追加选集,确认受理后再结算 (#7505) 2026-11-21 06:11:05 +08:00
jxxghp
f4fa80b702 feat(mediaserver): proxy native playback streams 2026-11-19 01:53:03 +08:00
Huyvux12
ea4d3cadac fix(subscribe): do not treat media library query failure as missing episodes
A single media library read failure made the whole season look missing:
Jellyfin/Emby get_tv_episodes returns (None, None) on failure and
(None, {}) when not found, but media_exists merged both into None, so
get_no_exists_info wrote a whole-season missing marker and the subscribe
chain re-downloaded episodes that were already archived.

Distinguish the two cases with MediaServerQueryError and an opt-in
raise_on_query_failure flag (default off, TV only): the strict path
raises through run_module_strict instead of being swallowed by lenient
dispatch, and the four subscribe entries skip the round without writing
missing state. Plex cannot distinguish failure from not-found and stays
unchanged; movie/music services are unaffected.

Closes #7444
2026-11-17 22:49:15 +00:00
jxxghp
68d4522246 feat(mediaserver): add authorized range streaming 2026-11-15 17:23:42 +08:00
jxxghp
8122337427 fix(download): preserve recognized season and episode mapping 2026-11-14 23:35:31 +08:00
jxxghp
ad7f4a37ba refactor(indexer): move site-specific protocols into modules 2026-11-12 09:57:27 +08:00
jxxghp
a0e27c4424 feat(indexer): map Piggo resource labels
Resolve site labels from the Piggo catalog and dispatch connectivity, ticket parsing, and throttling through indexer capabilities.
2026-11-12 06:45:16 +08:00
Aqr-K
71c2e9e3df fix(storage): retain history until target cleanup is confirmed (#7202) 2026-10-27 05:42:07 +08:00
jxxghp
fa67be8e4a fix(scraping): normalize artwork and reuse downloads for aliases
Add independent alias and Fanart 4K switches, identify exact artwork names, preserve episode and season conventions, and detect missing images across case and format variants. Normalize downloaded bytes to JPEG or PNG and reuse one request with storage hard links or local upload copies.

Refs #7128
2026-10-22 09:25:42 +08:00
Aqr-K
bf4ef4214e perf(mediaserver): add caller-controlled query projections (#7068)
* perf(mediaserver): add caller-controlled query projections

* test(mediaserver): cover query projection option contracts

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-19 08:33:45 +08:00
jxxghp
60d2fe418a fix(douban): preserve recommendation lists and page model contracts 2026-10-18 15:08:37 +08:00
DDSRem
2de976f6b3 Merge pull request #7050 from DDSRem-Dev/codex-comment-migration
docs: 统一全项目中文注释和结构化契约说明
2026-10-17 19:26:29 +08:00
cosini
e36884766c feat(douban): 新增豆瓣短评与影评接口
* feat(douban): 新增豆瓣短评与影评接口

* fix(douban): satisfy comment endpoint CI gates

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-17 12:31:41 +08:00
jxxghp
4955b7b9ea fix: harden backend isolation and execution safety 2026-10-16 09:11:28 +08:00
ChantXu64
e5e2558585 feat(search): 订阅补全逐页搜索、断点续搜与资源页手动分页 (#6907) 2026-10-07 14:40:55 +08:00
jxxghp
02686ed674 feat(search): merge music artists into person search 2026-09-10 09:02:17 +08:00
jxxghp
d0c894f5eb fix(transfer): close durable error recovery loop 2026-09-08 22:38:59 +08:00
jxxghp
71147c1d96 feat(classification): support multi-source media rules 2026-09-03 11:51:18 +08:00
jxxghp
23bff6b2bb refactor: add durable transfer planning checkpoints 2026-08-27 13:16:33 +08:00
jxxghp
e02418bace feat(media): aggregate aliases from enabled metadata sources 2026-08-26 13:45:03 +08:00
jxxghp
574c50586e feat(music): 完善歌词与专辑目录整理 2026-08-25 21:02:26 +08:00
jxxghp
52fd495d38 refactor: normalize downloader file contracts 2026-08-24 02:10:04 +08:00
jxxghp
83318b12c0 refactor: enforce module fanout contracts 2026-08-24 02:02:01 +08:00
jxxghp
19653b1437 refactor: type recognition module contracts 2026-08-24 01:58:36 +08:00
jxxghp
3e4e182ff9 refactor: type routed module contracts 2026-08-24 01:55:27 +08:00
jxxghp
9712803b8d refactor: type music module contracts 2026-08-24 01:50:01 +08:00
jxxghp
f655051c85 refactor: unify tmdb query contracts 2026-08-24 01:47:47 +08:00
jxxghp
488b3667bb refactor: unify anilist module contracts 2026-08-24 01:45:49 +08:00
jxxghp
903d1d3c4d refactor: unify bangumi module contracts 2026-08-24 01:44:06 +08:00
jxxghp
ce27732064 refactor: unify douban module contracts 2026-08-24 01:42:34 +08:00
jxxghp
8f6456be6c refactor: unify discovery module contracts 2026-08-24 01:40:39 +08:00
jxxghp
c41492e56c refactor: type host lookup contracts 2026-08-24 01:38:27 +08:00
jxxghp
bb80c10a0b refactor: type storage value contracts 2026-08-24 01:35:42 +08:00
jxxghp
e359bbace9 refactor: type media server contracts 2026-08-24 01:33:04 +08:00
jxxghp
bc8e4e75e3 refactor: unify media capability contracts 2026-08-24 01:15:09 +08:00
jxxghp
14e70208a2 refactor: type downloader action contracts 2026-08-24 01:11:47 +08:00
jxxghp
f37407d0f3 fix: merge downloader tracker mappings 2026-08-24 01:08:45 +08:00
jxxghp
b0c4809d1a refactor: type high-value module contracts 2026-08-24 01:03:57 +08:00
jxxghp
f1e542bef0 refactor: govern background tasks and query ownership 2026-08-23 13:24:04 +08:00
jxxghp
677f6a66c2 refactor: complete host module and event contracts 2026-08-22 13:21:52 +08:00
jxxghp
5d9c6c8b19 refactor: expand runtime contracts and debt ratchets 2026-08-22 08:25:36 +08:00
jxxghp
b9ad5220ae refactor: define module contract v2 2026-08-21 21:25:35 +08:00
jxxghp
5128ae9e1e refactor: 推进后端分层架构治理 2026-08-18 00:29:14 +08:00