Commit Graph

119 Commits

Author SHA1 Message Date
jxxghp
d9afaba8dd feat(plugin): expose documentation before installation (#7222) 2026-10-27 21:37:00 +08:00
LIN student
de9fefe90f fix(torrent): refresh TTG path-signed download links
- 将 TTG 的 /dl/{id}/{auth} 下载链接识别为短时签名链接,403 后复用既有的
  同资源刷新重试;仅匹配 totheglory.im 及其子域名,其他站点相同形态的路径不受影响。
- 从 TTG 详情页 /t/{id}/ 与下载路径 /dl/{id}/{auth} 提取稳定种子 ID,
  末段 auth 不参与资源身份,刷新时可匹配回同一种子。
- RSS 条目使用 rssdd.php?par= 链接,不受本次路径规则影响。

Refs #7191

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 19:13:52 +08:00
DDSRem
21af7a0170 fix(metainfo): exclude resolution tags from anime detection (#7173)
* chore: bump moviepilot-rust to 0.3.12

* fix(metainfo): exclude resolution tags from anime detection

保留年份并排除分辨率标签触发的伪季集,补充 Python 与 Rust 的标题和路径回归。补齐 0.3.12 wheel 锁,并定向修复 Brotli 与 setuptools 的依赖审计阻断。

---------

Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com>
Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-24 21:01:23 +08:00
Aqr-K
6610a8c008 fix: retain plugin lifecycle ownership and recover installation state (#7146)
* fix: retain plugin lifecycle ownership and recover installation state

* test: cover plugin rollback and uninstall lifecycle boundaries

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-23 07:44:07 +08:00
Aqr-K
bcbf79f030 fix(media): preserve recognition and rule mutation identities (#7144)
* fix(media): preserve recognition and rule mutation identities

* test: cover typed classification facts with alias policies

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-23 07:33:27 +08:00
jxxghp
5fc4f2efd8 fix(music): match verified bilingual artist and title aliases 2026-10-22 18:21:12 +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
jxxghp
6d4ce83837 fix(types): clear host mypy debt and prevent typing regressions
严格检查全部宿主源码,清零类型错误预算并移除按模块类型豁免。
按原因、所属方法、错误码及语法指纹锁定必要兼容例外和站点类型桩,
CI 阻断新增忽略、检查范围退化、本地桩替代真实接口及新的类型错误。

修复空值、异步和供应方类型边界,保持插件与 API 兼容合同,
并补充存储、订阅、通知、Agent 和工作流边界的回归覆盖。
2026-10-21 22:03:18 +08:00
jianlin6
d89ad925ee fix(music): 识别碟号后缀目录,修复多碟专辑音轨键塌陷
整专下载完成度按 `["<disc>", "<track>"]` 键集累计,而碟片识别只接受目录名整体
为 `CD1`/`Disc 2`。把碟号写在专辑目录名末尾的资源(`陈奕迅 - 十年经典 CD1`)
解析不到 disc_number,音轨键生成回退到 `disc_number or 1`,两张碟的同曲序互相
覆盖,键集直接减半(30 首只记到 15 个键),订阅永远判定未完成。

只补碟号,不改变专辑根推断:该目录仍按专辑目录解析,`parse_disc_dir` 的 11 处
结构性调用语义不变,入库目标目录(`Disc 1` 布局)也不受影响。
2026-10-21 10:39:53 +08:00
flippedyizheng
4df028d49f fix(metainfo): 副标题中被否定的季集号不再识别为资源季集
与 MoviePilot-Rust 同步 Python 兜底解析:副标题季/集正则增加「不包含/不包括/不含」
否定前缀的反向断言,避免「不包含 第二季」被识别为第 2 季,导致未标季号的第一季合集
命中第二季订阅并将订阅判定完成。补充 Python 兜底解析单测。
2026-10-20 12:51:30 +08:00
jxxghp
d0f70e45eb fix(music): strip Gazelle slash-separated release specs 2026-10-20 12:10:21 +08:00
jxxghp
379c26a300 feat(subscribe): record initial and upgrade download provenance (#7061) 2026-10-19 16:03:21 +08:00
jxxghp
9bcebc2c52 fix(community): prewarm and refresh medal snapshots in background 2026-10-18 10:37:19 +08:00
Q
8b3eb22748 fix(search): bound long site cooldowns during paged searches (#7056)
分页搜索在站点持续冷却时无法结束本轮收集,已缓存候选因此长期不能提交。

为来源持久化长冷却次数,仅在 cooldown 且等待至少 600 秒时累计;达到三次后仅停止当前轮次,下一轮重新搜索,成功取页后清零。

审查修复:
- 冷却时间与当前时间采用同一秒精度,避免恰好 600 秒的等待漏计。
- 临时下载票据重取共享有限等待计数,保留末页来源的实际冷却时间;重启不清零,也不提前重复请求。超过上限后放弃无法恢复票据的候选,继续提交可用候选。
- 补充虚拟时钟、检查点恢复、同源多个候选回退、旧检查点兼容与成功后清零的回归覆盖及中文注释。

验证:本地相关 pytest 217 passed;changed-file Pylint、Ruff ratchet、结构复杂度、849 个源文件的 mypy 和宿主架构快照通过。合并前核对最终 PR head 的六片全量测试、覆盖率、Pylint 和架构门禁。
2026-10-18 09:38:17 +08:00
DDSRem
e0642eafa7 chore(types): reduce v3 host mypy debt (#7057)
* chore(types): clear AniList endpoint mypy debt

* chore(types): clear Douban endpoint mypy debt

* chore(types): clear recommendation endpoint mypy debt

* chore(types): clear subscription notification mypy debt

* chore(types): clear SDK string compatibility mypy debt

* chore(types): ratchet v3 host mypy across remaining files

* chore(types): reduce v3 host mypy debt and retire ledger

* chore(types): reconcile host snapshot with upstream HTTP pool

* test(types): cover host paths exposed by mypy cleanup
2026-10-18 09:37:49 +08:00
Qinghe Li
85b367527e fix(scraper): align built-in NFO results with text contract (#7049)
* fix(scraper): return NFO text from built-in providers

* test: cover type migration boundaries

* fix: silence dynamic import lint diagnostics

* test: keep coverage policy stable for nfo repair

* fix: preserve merged scraper documentation during conflict repair

---------

Co-authored-by: Derrors <derrors@local>
Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-10-17 19:53:06 +08:00
DDSRem
2de976f6b3 Merge pull request #7050 from DDSRem-Dev/codex-comment-migration
docs: 统一全项目中文注释和结构化契约说明
2026-10-17 19:26:29 +08:00
jxxghp
3e675bdee4 fix(types): annotate media context methods safely 2026-10-17 16:25:03 +08:00
jxxghp
a36d126ab8 refactor(types): describe XML reader and NFO byte output 2026-10-17 00:41:37 +08:00
jxxghp
6ed327128f refactor(types): type customization matching contracts 2026-10-16 17:11:52 +08:00
jxxghp
c67acc125e refactor(types): type release group matching contracts 2026-10-16 16:57:44 +08:00
jxxghp
33213e8ac3 refactor(types): govern streaming platform lookup cache 2026-10-16 12:13:53 +08:00
jxxghp
70511cc4d2 refactor(types): govern token stream with strict mypy 2026-10-16 09:27:01 +08:00
jxxghp
0ae48fb281 refactor(types): govern media title parsing with strict mypy 2026-10-16 09:21:27 +08:00
jxxghp
4955b7b9ea fix: harden backend isolation and execution safety 2026-10-16 09:11:28 +08:00
InfinityPacer
9181ad2b65 feat(community): serve community medals from the Wiki registry behind remote switches
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 22:28:58 +08:00
jxxghp
5fe8ad98b2 fix(music): make album years optional matching evidence (#7004) 2026-10-15 12:16:24 +08:00
jxxghp
ea60ed0fd6 feat(community): recognize GitHub contributions and honor levels 2026-10-15 12:11:36 +08:00
jxxghp
72c8bff312 feat(music): preserve local covers and fall back after online scraping fails 2026-10-14 23:15:41 +08:00
jxxghp
98bd038623 fix(music): reconcile album completion and prevent duplicate downloads
Recover complete release coverage from successful local transfers and audio tags/CUE before subscription searches. Keep release-group and album boundaries, and reject completed torrent hashes before downloader submission.
2026-10-13 17:05:57 +08:00
jxxghp
4059877088 fix(search): preserve full collection for whole-season subscriptions
Retain episode targets while keeping the whole-season barrier across paging and checkpoint recovery. Full scans no longer stop at the latest episode observed on early pages.
2026-10-11 07:53:45 +08:00
jxxghp
0cbdbf9b1d fix(search): cap paging and stop unmatched IMDb sources 2026-10-11 07:46:38 +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
freeman
f3ad81b39e style: apply safe ruff auto-fixes and exempt startup late imports
Run `ruff check app tests scripts --fix` with the configured rule set
(E4/E7/E9/F/I): import sorting (I001), f-strings without placeholders
(F541), lambda/variable/unused-import cleanups that ruff marks safe.
Nine files whose only ruff debt sits next to pre-existing pylint
import-resolution errors (lazy exports, sys.path script imports) or
whose "unused" imports are reached through attribute access by tests are
left untouched so the changed-file pylint gate and the benchmark tests
stay green; their diagnostics remain in the baseline.

app/startup/lifecycle/__init__.py and app/main.py import business
modules after cache composition, import-path and stdio setup on purpose
(the source comments document the contract), so declare E402
per-file-ignores for them instead of adding per-line noqa.

Ruff ratchet watermark drops from 498 to 100; sync the baseline fixture
and the optimization checklist figure.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 13:29:09 +08:00
ChantXu64
e5e2558585 feat(search): 订阅补全逐页搜索、断点续搜与资源页手动分页 (#6907) 2026-10-07 14:40:55 +08:00
jxxghp
e21d68496f fix(torrents): use incremental cache for M-Team by default
Refs #6878
2026-10-04 10:46:49 +08:00
jxxghp
5dabe1ed46 fix(torrent): prefer resource ids over tracker group ids
Refs #6878
2026-10-04 10:34:57 +08:00
jxxghp
823423b2c9 fix(download): refresh expired signed torrent links
Refs #6878
2026-10-04 10:27:28 +08:00
jxxghp
2e24c4063f fix(douban): keep language mapping within projection boundary 2026-10-02 17:14:08 +08:00
jxxghp
e3524a37b5 fix(douban): map source languages for classification (#6860) 2026-10-02 17:05:33 +08:00
InfinityPacer
0e4c81e8cb perf(meta): load only the pinyin syllable table for music titles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 23:30:11 +08:00
jxxghp
c9c9a477d9 fix(music): improve PT title parsing and benchmark recognition 2026-09-30 20:50:50 +08:00
jxxghp
0678a17364 fix(music): reject conflicting recording and album identities 2026-09-30 16:18:09 +08:00
jxxghp
9b054bdf0c feat(music): preserve classical credits and verify performance evidence 2026-09-30 12:55:21 +08:00
jxxghp
72fcd8413a fix(music): verify artist aliases and preserve ambiguous identities 2026-09-30 11:42:23 +08:00
jxxghp
3a5486ae0d feat(music): add bounded source fallback and verified album matching 2026-09-30 10:50:09 +08:00
jxxghp
3a7b0c1efc feat(music): validate bounded fingerprint candidates and recover failed lookups 2026-09-30 07:42:38 +08:00
jxxghp
54591ac50e feat(music): bound recognition requests and make lookup caches recoverable 2026-09-30 05:15:14 +08:00
jxxghp
c15b4bf5e5 feat(music): verify release candidates with identities and complete track evidence 2026-09-30 04:00:48 +08:00
jxxghp
47303a1be6 fix(music): align album tracks by unique evidence instead of file order 2026-09-30 03:29:05 +08:00