Commit Graph

10880 Commits

Author SHA1 Message Date
zhuek
183c8d514b test: sync host architecture baseline with hddolby import
复用 app.foundation.text.parse_bool 后新增 app.modules.indexer.spider.hddolby ->
app.foundation(.text) 两条内部导入边,按 architecture 门禁要求刷新依赖基线,
并同步 docs/architecture-overview.md 的依赖边数(10,329 -> 10,331)。
2026-11-18 13:16:51 +08:00
warzook
b0a842ea0f fix: map hddolby hr flag to hit_and_run
HDDolby 搜索接口每条记录带 hr 字段(0/1),但适配器组装通用种子字典时未输出
hit_and_run,导致浏览资源时前端不显示 H&R 标签、刷流插件与下载通知的 H&R 判断
始终为否。按站点接口语义把 hr 映射为 hit_and_run,并复用文本工具的布尔解析以
兼容数值、字符串与字段缺失。
2026-11-18 13:15:27 +08:00
jxxghp
6a029e600c Merge pull request #7445 from Huyvux12/fix/issue-7444-subscribe-missing-on-media-query-failure 2026-11-18 12:51:24 +08:00
InfinityPacer
e1e2197af7 docs(subscribe): restore subscription lifecycle document
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 11:48:52 +08:00
Huyvux12
b0084dc633 fix(subscribe): keep literal dispatch calls and sync architecture baselines
CI Architecture Contract Gate failed on the first push: the variable
indirection 'dispatch = run_module_strict if ... else run_module' made the
static baseline collector lose the run_module call site for media_exists
(it only records literal self.run_module / async_run_module calls), and
the four new subscribe -> mediaserver import edges plus the new optional
parameter were not yet in the snapshots.

Keep both dispatch routes as literal calls so the baseline keeps
recording the lenient call site (run_module_strict calls are not tracked
by the collector, same as the existing strict sites in storage and
_messaging), and regenerate the host baselines plus the architecture
overview edge count for the intentional changes only:
- dependency-baseline.json: +4 edges (chain.subscribe.* -> mediaserver)
- runtime-contract-baseline.json: media_exists += raise_on_query_failure
- docs/architecture-overview.md: 10,329 -> 10,333 edges
2026-11-18 00:05:49 +00: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
19e57eba94 Merge pull request #7443 from jxxghp/fix/ios-library-episodes-20261117
feat(mediaserver): 补充媒体库选集展示信息
2026-11-17 21:21:50 +08:00
jxxghp
78b789ca67 fix(api): declare episode metadata pagination contract 2026-11-17 21:13:42 +08:00
jxxghp
bd97204bd6 style(mediaserver): sort episode metadata imports 2026-11-17 21:06:18 +08:00
jxxghp
3c8514cc67 feat(mediaserver): provide episode metadata for library search 2026-11-17 20:57:03 +08:00
jxxghp
2c90a22fdd fix(cli): preserve public host in local API proxy 2026-11-17 17:19:53 +08:00
jxxghp
ff5e785888 chore(release): publish v3.2.7 2026-11-17 15:12:29 +08:00
jxxghp
a2f19dd377 fix(media): send shared mappings as JSON (#7442) 2026-11-17 13:26:30 +08:00
Joseph Perla
371cf18c90 feat(llm): 新增 TrustedRouter provider (#7441) 2026-11-17 10:09:33 +08:00
jxxghp
f9d8b1106a test(auth): cover channel approval and revocation boundaries 2026-11-17 09:07:53 +08:00
jxxghp
914481ad2d feat(auth): unify notification channel authorization 2026-11-17 01:36:08 +08:00
jxxghp
bb1ced76ce feat(media): 共享并缓存非 TMDB 到 TMDB 的转换关系 (#7440)
* feat(media): reuse shared source to TMDB mappings

* test(media): cover shared target fallback and invalid reports
2026-11-16 22:35:21 +08:00
jxxghp
18de1f6719 Merge pull request #7439 from jxxghp/fix/issue-7424-fault-diagnostics
fix(docker): enable backend native crash diagnostics
2026-11-16 20:23:23 +08:00
jxxghp
c8b165537e fix(docker): enable backend native crash diagnostics 2026-11-16 20:15:53 +08:00
jxxghp
58ea2408e5 Merge pull request #7435 from jxxghp/fix/issue-7432
fix(subscribe): 修复跨媒体来源重复订阅与状态查询
2026-11-16 15:06:42 +08:00
jxxghp
8e80f35086 test(startup): account for subscription identity lookup module 2026-11-16 15:00:35 +08:00
jxxghp
103589ab87 fix(subscribe): deduplicate subscriptions across media sources 2026-11-16 14:53:57 +08:00
jxxghp
7a030f5b21 fix(storage): 核验 115 上传回调并隔离不确定结果 (#7434)
* fix(storage): verify 115 upload callbacks before retry

Preserve uncertain completion results for manual review instead of replaying uploads. Refs #7433.

* docs: sync architecture import count
2026-11-16 11:53:10 +08:00
jxxghp
d747eba318 fix(cache): back off repeated async Redis reads (#7431)
* fix(cache): back off repeated async Redis reads

* test(architecture): sync Redis egress fingerprint
2026-11-16 07:57:02 +08:00
sloth
28e9e2e65b fix(search): 翻页失败时保留已获取的搜索结果 (#7429) 2026-11-16 07:18:17 +08:00
jxxghp
8deb98aba8 test(mediaserver): cover provider search integration 2026-11-15 18:04:44 +08:00
jxxghp
070fc18d58 fix(mediaserver): complete stream API contracts 2026-11-15 17:48:06 +08:00
jxxghp
68d4522246 feat(mediaserver): add authorized range streaming 2026-11-15 17:23:42 +08:00
jxxghp
30edd8ec10 fix(transfer): allow one manual AI replan beyond retry budget (#7425) 2026-11-15 08:27:12 +08:00
jxxghp
3560e3bc18 Merge pull request #7422 from pcbeingused333/fix/wechat-none-title 2026-11-15 07:07:28 +08:00
jxxghp
c32863c4c4 Merge pull request #7420 from CHANTXU64/ai/subscribe-trimmed-total-scope 2026-11-15 07:04:29 +08:00
CHANTXU64
6f8a04abeb fix(subscribe): 手工末集号按实际集号裁剪缺集,整季记账只移除已下载的季
上一提交只在本季从第 1 集起且前段不断号时写出目标集;断号季和累计编号季
仍按缺整季处理,例如订阅 E01–E11 时整包连范围外的 E12 一起提交,
订阅 E13–E18 时含 E13–E24 的整包又因文件数少于末集号被拒。

- 订阅总集数为手工指定时,get_no_exists_info 按季内末集号计算目标范围
  (新增仅限关键字参数 totals_are_episode_numbers,默认行为不变),
  覆盖累计编号与断号;范围内 TMDB 尚未列出的集继续等待补集
- update_no_exists_seasons 只移除本次成功下载的季,不再连带清掉
  其他季的显式缺集
- 非正数总集数按未设置处理,避免空目标切片导致缺集查询中断
- 合并缺集计算的两条分支,get_no_exists_info 复杂度由 23 降到 17,
  同步下调复杂度基线

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 00:39:34 +08:00
CHANTXU64
b56af20366 fix(subscribe): 总集数裁短时整季包只下载订阅范围内的剧集
订阅只要本季前几集(如单集试看 start=1、total=1)且本季完全未入库时,
缺集仍用空列表表示缺整季。首次下载的整包优先因候选优先级为 0 被拒、
回退普通下载后,整季包不选集整包提交,例如只订第 1 集却下载 E01-E21。

- get_no_exists_info 在传入的总集数少于本季集数时写出显式目标集,
  下载链据此走拆包选集;媒体库无此剧和只有其他季两条分支一致
- 总集数存在集数与末集号两种口径,仅在两者一致(本季从第 1 集起、
  前段不断号)时写出目标集,否则保留整季标记,避免订阅被裁成空集而误判完成
- 总集数覆盖整季或大于本季集数时行为不变;插件传入较小 totals 时
  返回值由空列表变为显式集数
- 补充缺集计算与从订阅下载入口到下载器选集的回归用例

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 00:39:34 +08:00
jxxghp
f53d3b36f6 Merge pull request #7414 from gi29734401/agent/moviepilot/dfe0f538fb50ccf0
fix(transfer): 智能助手识别成功但文件仍无法整理
2026-11-15 00:20:41 +08:00
jxxghp
da424ba918 fix(transfer): 完善显式身份识别与重规划技能契约 2026-11-15 00:14:58 +08:00
jxxghp
8ea17993f0 Merge pull request #7419 from jxxghp/fix/issue-7417-season-selection
fix(download): 按识别后的季集映射选择种子文件
2026-11-14 23:43:13 +08:00
jxxghp
8122337427 fix(download): preserve recognized season and episode mapping 2026-11-14 23:35:31 +08:00
jxxghp
ed702fa4d2 Merge pull request #7418 from jxxghp/fix/issue-7416-episode-zero
fix(transfer): 修复第 0 集的偏移、模板匹配和刮削
2026-11-14 23:29:31 +08:00
jxxghp
b339a7452b fix(transfer): preserve zero episode numbers during offset 2026-11-14 23:23:14 +08:00
jxxghp
062b542676 Merge pull request #7410 from pcbeingused333/fix/notify-none-title
fix(notification): 通知仅有正文时 Slack、VoceChat、Synology Chat 不再显示标题 None
2026-11-14 18:52:43 +08:00
jxxghp
1bcdab81a6 fix(notification): complete optional title regression coverage 2026-11-14 18:46:23 +08:00
sloth
5d3264e7cb fix(transfer): 补齐识别回退基类桩的原生标识签名
mypy 检查子类签名与 _MediaOwnerBase 的 override 不兼容,导致 Architecture Ratchet Gate 与单元测试的类型门禁失败。仅在类型桩同步可选参数,运行时行为不变。
2026-11-14 18:43:23 +08:00
sloth
ff90de545d fix(transfer): 重新规划识别复用已核实的媒体标识 2026-11-14 18:21:29 +08:00
Alex Castillo
092017f9e7 fix(notification): omit missing title in WeChat text messages
A text-only notification (title=None) was formatted as "None\n<text>".
Send only the body when the title is missing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-14 05:12:12 -04:00
jxxghp
ec12c15ecd fix(rss): recover missing and expired site feeds safely 2026-11-14 14:16:41 +08:00
jxxghp
0e54d7b7ab Merge pull request #7412 from jxxghp/fix/issue-7411-kids-category
fix(classification): prioritize children in default TV rules
2026-11-14 11:17:11 +08:00
jxxghp
07482e1321 fix(classification): prioritize children's TV categories 2026-11-14 11:11:46 +08:00
jxxghp
e6f9bd4165 Merge pull request #7409 from jxxghp/perf/subscription-refresh-20261114
perf(subscription): 优化自动模式订阅刷新排程
2026-11-14 10:30:48 +08:00
jxxghp
8d70d84333 perf(subscription): optimize automatic refresh scheduling 2026-11-14 10:24:22 +08:00
Alex Castillo
8d7784b392 fix(notification): omit missing title in Slack, VoceChat and Synology Chat messages
When send_msg is called with only text (title=None), these channels rendered the literal string 'None' as the title. Skip the title when it is absent.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 22:22:48 -04:00