Commit Graph

75 Commits

Author SHA1 Message Date
jxxghp
1206913e07 fix(transfer): 恢复远端已移动未改名的整理任务 (#7454)
* fix(transfer): resume remote moves after partial renames

* test(agent): wait for complete subprocess handshake

* test(classification): allow CI scheduling margin
2026-11-18 18:41:19 +08:00
jxxghp
4020a14280 fix(subscribe): preserve media query failures across HTTP and servers 2026-11-18 17:18:05 +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
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
8122337427 fix(download): preserve recognized season and episode mapping 2026-11-14 23:35:31 +08:00
jxxghp
ec12c15ecd fix(rss): recover missing and expired site feeds safely 2026-11-14 14:16:41 +08:00
jxxghp
8d70d84333 perf(subscription): optimize automatic refresh scheduling 2026-11-14 10:24:22 +08:00
jxxghp
2078779397 fix(download): preserve tasks and align episode file selection (#7405)
Keep existing downloads untouched, retain unnumbered attachments and select intersecting episode videos consistently across downloaders.

Refs #7362
2026-11-13 22:26:21 +08:00
jxxghp
d1c34c1b56 fix(storage): repair dangling symlinks during retransfer (#7398)
Preserve atomic replacement and legacy execution-step retries. Refs #7391.
2026-11-13 10:19:57 +08:00
jxxghp
e72830204c fix(download): report indirect ticket failures without blacklisting
换票无响应、HTTP 错误、配方解析失败或无有效地址时,携带脱敏诊断返回“换票失败”并交给 on_failure 上报,不再静默失败或调用 add_invalid。换票所得临时地址返回错误页或非种子内容时标记为“临时下载地址失效”,下一次重新换票;两类失败均使用 1 小时瞬时冷却。直接链接的真实损坏种子仍保留“种子数据有误”和 24 小时黑名单。诊断包含 HTTP 状态、有限错误字段摘要与是否携带 Cookie,并移除凭据和完整签名 URL。

Fixes #7372
2026-11-12 12:50:03 +08:00
jxxghp
6bc19a59cc fix(agent): protect plugin config and replay receipts (#7360) 2026-11-11 13:39:35 +08:00
ChantXu64
0200642746 fix(download): 完整覆盖整包只下载订阅范围内的剧集 (#7361) 2026-11-11 13:36:17 +08:00
jxxghp
a3c8280d14 fix(telegram): retry poster uploads before text fallback (#7330) 2026-11-08 10:37:03 +08:00
jxxghp
379ef94c9c fix(transfer): 修复硬链接覆盖整理误留暂存与备份 (#7322)
从已落账操作回执更新共享 inode 的状态时间,并保留外部改写与未知结果的副本保护。关联 #7321。
2026-11-07 18:33:23 +08:00
Derrors
17478f7825 fix(browser): reap idle sessions without subsequent requests
Register a lifecycle-owned periodic reaper and close expired sessions on their original workers. Guard pending operations and retain closing resources until actual completion, including owner shutdown races. Add isolated concurrency and lifecycle regressions and synchronize browser documentation.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-06 20:37:40 +08:00
jxxghp
054119e885 fix(event): isolate durable broadcast handler delivery 2026-11-05 02:51:43 +08:00
jxxghp
f9c010fc91 fix(plugin): preserve startup recovery transaction ownership (#7297) 2026-11-04 12:30:12 +08:00
jxxghp
e3e5184d42 fix(anilist): persist Chinese titles and use official API 2026-11-01 08:16:03 +08:00
jxxghp
f5bd3458a6 fix(subscribe): restore strict media identity checks 2026-10-30 22:36:51 +08:00
jxxghp
6ca7b294a0 fix(download): 共享站点流控并保留频控错误原因 (#7246)
* fix(download): share site limits and preserve frequency errors

* test(startup): record shared site throttle module
2026-10-30 14:53:32 +08:00
jxxghp
16cd9f75ed fix(apppush): deliver business notifications to all active users (#7235) 2026-10-29 21:43:18 +08:00
Aqr-K
f84894faee fix(events): release handler ownership before notifying completion (#7206) 2026-10-27 05:43:57 +08:00
Aqr-K
ae4833e261 fix(publish): pin plugin reads and writes to one commit (#7204) 2026-10-27 05:43:16 +08:00
Aqr-K
b94b1c1496 fix(media): invalidate album cache when CUE content changes (#7203) 2026-10-27 05:42:40 +08:00
Aqr-K
71c2e9e3df fix(storage): retain history until target cleanup is confirmed (#7202) 2026-10-27 05:42:07 +08:00
Derrors
72d940b835 fix(storage): detect nested 115 changes with stale directory times
115 子项变化不保证推进祖先目录时间。禁用该存储的目录时间剪枝,沿用现有快照遍历、深度、分页及限流。补充 API 边界与真实轮询器回归,验证空基线、旧时间移入和重复派发。
2026-10-26 21:59:07 +08:00
jxxghp
8f21e12d75 fix(search): release unused site request reservations 2026-10-26 09:23:29 +08:00
jxxghp
251513f580 fix(search): honor the actual site rate limit when deferring
Refs #7187
2026-10-26 09:02:20 +08:00
jxxghp
046d4758e6 fix(search): persist processed candidates across queue resumes
Refs #7183
2026-10-26 08:50:04 +08:00
jxxghp
e1b0d5b4bf fix(indexer): identify HDDolby API connection failures (#7164) 2026-10-23 21:04:49 +08:00
jxxghp
cc3845621f fix(db): invalidate SQLite connections after I/O errors (#7161) 2026-10-23 19:42:31 +08:00
jxxghp
5fc4f2efd8 fix(music): match verified bilingual artist and title aliases 2026-10-22 18:21:12 +08:00
jxxghp
9d534d1954 fix(search): restore complete packs before initial parts 2026-10-22 07:37:31 +08:00
jxxghp
6c68225a07 ci(startup): 固定冷导入耗时上限为三秒 2026-10-20 20:44:01 +08:00
jxxghp
43424e592c fix(subscribe): 全集洗版始终使用洗版规则筛选资源 (#7111) 2026-10-20 20:22:18 +08:00
JontyLee
d57af7979e fix(download): 重复接受且零新增交付的种子按资源退避,订阅改试其他资源 (#7107)
* fix(download): back off resources re-submitted with no new files

A subscription that re-selects an already-held package gets accepted by the
downloader again every search round, so the same resource keeps being
submitted while nothing new can be delivered. Record a resource-scoped
backoff when a reused task contributes no file rows: it suppresses only that
one resource, so candidates keep trying other torrents for the same media and
the subscription is neither completed nor failed. The cooldown ledger is no
longer failure-only, so the skip log reports the recorded reason instead of
claiming the add failed.

* fix(download): keep duplicate backoff stable across selection

---------

Co-authored-by: jianlin6 <jianlin6@jianlin6-MacBookPro.local>
Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-20 18:35:14 +08:00
jxxghp
cdb6560b5f ci: round startup median budgets up to whole seconds 2026-10-20 13:47:44 +08:00
jxxghp
2d73cbc43e docs: drop process records and internal implementation docs
Keep only install, usage, development-workflow and architecture-boundary
documents; remove the one-off refactor plans, audits and ledgers that had
already served their purpose.

- delete docs/refactor plus the agent API surface audit generator and its
  drift-only tests; the fixed route registry remains the source of truth
- delete internal implementation notes (agent, music, notification, transfer,
  subscription activity, docker startup, V3t runtime governance)
- delete site adapter capture/release shims and the ADR records; external
  links point at MoviePilot-Site-Collector instead
- keep docs/architecture-overview.md and gate its dependency and event
  figures against the generated fixtures
- drop doc-only assertions from the architecture baseline test and retarget
  remaining references at code and rule documents
2026-10-18 14:24:49 +08:00
jxxghp
9bcebc2c52 fix(community): prewarm and refresh medal snapshots in background 2026-10-18 10:37:19 +08:00
DDSRem
2de976f6b3 Merge pull request #7050 from DDSRem-Dev/codex-comment-migration
docs: 统一全项目中文注释和结构化契约说明
2026-10-17 19:26:29 +08:00
jxxghp
00645938d2 fix: isolate durable notification recovery 2026-10-17 13:11:15 +08:00
jxxghp
a92c4b597f ci: expand app coverage and async blocking gates 2026-10-17 06:52:51 +08:00
jxxghp
2149eb2a60 fix(download): provide fallback category for music torrents
Use the music media type as the downloader category only when music has no library classification. Preserve configured categories and qBittorrent automatic-management settings, with SDK-boundary regression coverage.

Refs #7028
2026-10-16 15:13:03 +08:00
jxxghp
4955b7b9ea fix: harden backend isolation and execution safety 2026-10-16 09:11:28 +08:00
jxxghp
43d50c387f fix(feishu): recover expired streaming cards with bounded retries
Reopen closed CardKit streams once and preserve monotonic sequences across recovery and finalization. Back off failed updates per card while retaining unsent Agent text.

Refs #6984
2026-10-14 12:54:29 +08:00
jxxghp
c4cd6c8ac4 fix(download): confirm tracker forms and blacklist invalid torrents 2026-10-13 21:54:37 +08:00
jxxghp
8cbba9916e fix(subscribe): prefer complete packs for initial TV downloads 2026-10-13 21:16:22 +08:00
jxxghp
6f9c0756c1 fix(download): reuse torrent content before resolving tickets (#6967) 2026-10-12 13:34:41 +08:00
jxxghp
dd90883c5d fix(torrent): respect tracker rate limits and quota cooldowns
Recognize explicit JSON rate limits before torrent parsing and short retries. Preserve per-call quota errors through download preparation so subscription cooldowns cover the tracker window.

Refs #6950
2026-10-10 23:34:35 +08:00