Commit Graph

10510 Commits

Author SHA1 Message Date
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
jxxghp
30378f2fc8 fix(network): recover shared pools after repeated pool timeouts 2026-10-18 09:01:33 +08:00
FlameSky
dd371ec4cc fix(wechat): refresh stale or rejected access_token (#7053) 2026-10-18 06:56:30 +08:00
InfinityPacer
8c52755d4e fix(plex): avoid detail reloads for continue watching 2026-10-18 01:40:55 +08:00
jxxghp
c1e738f615 test(runtime): cover setting defaults with and without configured ports 2026-10-17 20:27:47 +08:00
jxxghp
457ef25c2e chore(architecture): sync reviewed Discord and Plex SDK fingerprints 2026-10-17 20:17:37 +08:00
jxxghp
f1e09b40d0 fix(types): preserve Plex SDK return contracts 2026-10-17 20:14:11 +08:00
jxxghp
16723f03a4 fix(types): preserve Feishu notification identity boundaries 2026-10-17 20:12:48 +08:00
jxxghp
a03e620c27 fix(types): make Emby response contracts explicit 2026-10-17 20:12:48 +08:00
jxxghp
acfe477c66 fix(types): make Discord callbacks and receipts explicit 2026-10-17 20:12:48 +08:00
jxxghp
74489ca32f fix(types): make ZSpace response contracts explicit 2026-10-17 20:12:48 +08:00
jxxghp
0bde181702 fix(types): make Jellyfin response contracts explicit 2026-10-17 20:12:48 +08:00
jxxghp
bb7f7f7315 fix(types): clarify Ugreen session and media response boundaries 2026-10-17 20:12:48 +08:00
DDSRem
e33ae01aad ci: gate v3 release on version value changes (#7052)
Co-authored-by: DDSRem <1448139087@qq.com>
2026-10-17 19:57:48 +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
3c7431b7da fix(types): keep TrimeMedia complexity within gate 2026-10-17 18:29:41 +08:00
jxxghp
2faafe864f fix(types): preserve TMDB client patch seam 2026-10-17 18:29:41 +08:00
jxxghp
5180708e57 fix(types): type TrimeMedia client boundaries 2026-10-17 18:24:12 +08:00
jxxghp
7733dd7832 fix(types): type TMDB module boundaries 2026-10-17 18:24:05 +08:00
jxxghp
c1d7deada8 fix(types): type messaging template and queue boundaries 2026-10-17 18:23:57 +08:00
jxxghp
999906e503 chore(types): gate TMDB and indexer cleanup 2026-10-17 18:02:33 +08:00
jxxghp
967780db88 fix(types): type indexer spider response boundaries 2026-10-17 18:01:20 +08:00
jxxghp
653180c8f0 fix(types): type TMDB API response boundaries 2026-10-17 17:59:13 +08:00
jxxghp
49f7d585b8 chore(architecture): restore U115 import edge 2026-10-17 17:45:19 +08:00
jxxghp
d85e9d2275 docs(types): align mypy debt metric 2026-10-17 17:40:43 +08:00
jxxghp
7ea9beacd3 fix(types): guard nullable U115 download stream 2026-10-17 17:40:25 +08:00
jxxghp
a36c3d7de9 Revert "fix(types): narrow U115 storage responses"
This reverts commit c4b7b3760c.
2026-10-17 17:38:34 +08:00
jxxghp
e2df9c3d3e docs(architecture): refresh dependency edge count 2026-10-17 17:29:06 +08:00
jxxghp
99820d07cc chore(architecture): refresh storage import graph 2026-10-17 17:24:03 +08:00
jxxghp
b33060f0a6 chore(types): gate HTTP client cleanup 2026-10-17 17:19:18 +08:00
jxxghp
b1b6d82c33 fix(types): guard nullable AliPan streams 2026-10-17 17:17:24 +08:00
jxxghp
d8d73e2708 fix(types): guard nullable storage streams 2026-10-17 17:17:24 +08:00
jxxghp
c4b7b3760c fix(types): narrow U115 storage responses 2026-10-17 17:12:42 +08:00
jxxghp
82639da3d1 fix(types): type shared HTTP clients 2026-10-17 17:12:42 +08:00
jxxghp
dba25cc834 test(subscribe): cover typed popular records 2026-10-17 16:55:58 +08:00
jxxghp
7adcec5022 style(types): format cache imports 2026-10-17 16:44:16 +08:00
jxxghp
643f66040b style(types): format server imports 2026-10-17 16:44:16 +08:00
jxxghp
d41e95a325 chore(architecture): record typed response imports 2026-10-17 16:41:22 +08:00
jxxghp
ae4534e14a fix(types): preserve server compatibility contracts 2026-10-17 16:37:48 +08:00
jxxghp
3366713e60 chore(types): gate parallel mypy cleanup batch 2026-10-17 16:26:40 +08:00
jxxghp
5a79600eb4 fix(types): preserve optional rTorrent content paths 2026-10-17 16:25:56 +08:00
jxxghp
8cd98de3a8 fix(types): align chain server response contracts 2026-10-17 16:25:54 +08:00
jxxghp
8a59bab207 fix(types): annotate cache proxy contracts 2026-10-17 16:25:26 +08:00
jxxghp
3e675bdee4 fix(types): annotate media context methods safely 2026-10-17 16:25:03 +08:00
jxxghp
cefb0b529e fix(types): preserve Douban module response fallbacks 2026-10-17 16:24:41 +08:00
jxxghp
2ee564d857 fix(types): narrow subscription share response fields 2026-10-17 16:24:11 +08:00
jxxghp
76d9ead430 fix(types): type MoviePilot server adapter responses 2026-10-17 16:23:48 +08:00
jxxghp
3f8a956321 fix(types): type Douban API response boundaries 2026-10-17 16:23:13 +08:00