Commit Graph

10827 Commits

Author SHA1 Message Date
jxxghp
4580c8d4c5 fix(indexer): stabilize FluxTorrent API access (#7404)
* fix(indexer): stabilize FluxTorrent API access

* test(indexer): isolate FluxTorrent schema registration
2026-11-13 20:41:34 +08:00
jxxghp
4fa05876f8 fix(music): inherit transfer defaults for final directories (#7403) 2026-11-13 19:42:58 +08:00
jxxghp
dd15f241e3 fix(deps): update Soup Sieve to unblock dependency audit (#7402) 2026-11-13 16:37:27 +08:00
jxxghp
b6b57a30db feat(music): add manual alignment and destination controls (#7401) 2026-11-13 16:17:22 +08:00
flippedyizheng
e9bc8ee2da fix(site): defer long local throttle waits instead of sleeping (#7399) 2026-11-13 12:20:18 +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
647c5f4da1 fix(transfer): tolerate ctime drift on FUSE mounts (#7397) 2026-11-13 09:41:07 +08:00
jxxghp
74dd42aaef Merge pull request #7396 from pcbeingused333/fix/jellyfin-library-routes-c2832 2026-11-13 06:52:37 +08:00
jxxghp
bbe05fb162 Merge pull request #7393 from gntv456/feature/flux-torrent-fixes 2026-11-13 06:51:57 +08:00
Alex Castillo
691b7d84ad fix(jellyfin): use dedicated routes for additional library types 2026-11-12 15:57:48 -04:00
gntv456
13d09bc551 docs(architecture): 同步架构总览的导入边数量
契约门禁要求文档中的依赖边数与生成 fixture 一致,随解析器新增
foundation.temporal 依赖更新为 10,123。
2026-11-12 20:50:39 +08:00
gntv456
64d3fa6c8c chore(architecture): 同步 FluxTorrent 用户解析器的依赖边
用户资料解析需要把站点返回的注册时间归一成统一格式,新增了
parser.fluxtorrent 对 foundation.temporal 的依赖,按契约门禁要求同步
依赖基线(10121 -> 10123 条边)。
2026-11-12 20:43:27 +08:00
gntv456
0d3302f2f6 test(indexer): 覆盖 FluxTorrent 连接检测与用户统计回退
新增连接检测用例:令牌缺失、正常回执、鉴权失败透出站点原因、非兼容层
响应不被当成成功;分类用例补教育类回落到站内分类名;用户资料用例补做种
数、做种体积与注册时间,并覆盖老站点经 PTPP 端点补齐、新版站点跳过请求
以及补充端点不可用三种路径。
2026-11-12 20:35:50 +08:00
gntv456
d411ad4c82 fix(indexer): FluxTorrent 连接检测改用兼容层令牌
FluxTorrent 是前后端分离站点,首页 HTML 不含 NexusPHP 登录标记。通用
网页检测会把有效的开放 API Token 误判成「Cookie已失效」,于是添加站点
后连接测试报错、用户资料也不再刷新。

给 FluxTorrentSpider 增加 test_connection:与搜索、用户资料解析共用同一
枚令牌请求兼容层 user.json 并校验统一信封,鉴权失败时把站点返回的原因
透出,不再让站长排查早已不需要的 Cookie。

同时修正两处数据表达:

- 教育类分类(小学/初中/高中/大学/教育影音)没有对应的 Newznab 媒体号,
  原来统一写成「未知」,还把「教育影音」映射成电视剧。现在保留站内分类
  名,既保留信息也不会把图书与课程资源标成剧集。
- 用户资料补做种数、做种体积与注册时间。老版本兼容层的 user.json 没有
  这些字段时改用 PTPP 聚合端点补齐;字段齐全时不重复请求,补充失败也
  不会把已解析成功的资料判成失败。
2026-11-12 20:35:49 +08:00
InfinityPacer
8580eb2cae fix(testing): wire site protocol and lazy module runtime in prepare_backend 2026-11-12 16:58:08 +08:00
InfinityPacer
410722b0bf docs(rules): streamline 05-architecture and align commit authorization note 2026-11-12 16:14:34 +08:00
jxxghp
da327ae968 chore(release): publish v3.2.6 with frontend v3.2.6 2026-11-12 13:43:57 +08:00
jxxghp
cbed026844 Merge pull request #7386 from jxxghp/fix/legacy-rule-ids-7383
fix(filter): migrate legacy rule IDs and diagnose invalid groups
2026-11-12 13:32:29 +08:00
jxxghp
bbc7795230 fix(filter): migrate legacy rule IDs and diagnose invalid groups
Refs #7383
2026-11-12 13:04:36 +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
6a9cd52ba2 Merge pull request #7385 from jxxghp/fix/issue-7369
fix(transfer): honor scrape defaults and music track overwrite
2026-11-12 11:58:30 +08:00
jxxghp
c488952b23 fix(transfer): honor scrape defaults and music track overwrite
手动整理未显式选择刮削时跟随目标目录设置;音乐自动整理锁定具体发行版本时按唯一曲序写入线上曲名和艺人。

Fixes #7369
Fixes #7379
2026-11-12 11:51:54 +08:00
jxxghp
a3171977d1 Merge pull request #7384 from jxxghp/refactor/site-module-dispatch
refactor(indexer): move site-specific protocols into modules
2026-11-12 11:17:03 +08:00
jxxghp
794856747a test(indexer): cover site connection failure responses 2026-11-12 11:02:03 +08:00
jxxghp
8b152b9fb0 chore: merge latest v3 into site protocol refactor 2026-11-12 10:37:22 +08:00
jxxghp
31acf2b923 Merge pull request #7381 from jxxghp/fix/issue-7368
fix(scraping): honor music album track overwrite policy
2026-11-12 10:14:22 +08:00
jxxghp
2e495e8129 fix(scraping): honor music album track overwrite policy
按音乐标签覆盖策略对专辑曲目做批次唯一匹配,保留有歧义或身份冲突的标签,并在响应和日志中说明处理结果。

Refs #7368
2026-11-12 09:57:48 +08:00
jxxghp
ad7f4a37ba refactor(indexer): move site-specific protocols into modules 2026-11-12 09:57:27 +08:00
jxxghp
8a8fa9d8fb Merge pull request #7376 from jxxghp/fix/piggo-resource-labels
feat(indexer): 支持猪猪资源标签与站点能力分发
2026-11-12 06:52:15 +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
jxxghp
2651d797d7 Merge pull request #7375 from Huyvux12/fix/issue-7367-caa-front500-fallback 2026-11-12 06:21:59 +08:00
Huyvux12
1fd1743667 fix(scraping): CAA front-500 404 时回退请求 /front 原图
front-500 缩略图派生文件缺失时 Cover Art Archive 返回 404,
旧逻辑直接把 (None, "image/jpeg") 写入缓存且无日志,重刮无法恢复。
改为 404 时回退请求 /front 原图并记录 info 日志;缓存 TTL 与
下载链路均不改动。

Fixes #7367
2026-11-11 15:43:48 +00:00
jxxghp
2830aff0e4 Merge pull request #7374 from jxxghp/docs/issue-7370-resource-version 2026-11-11 22:22:26 +08:00
jxxghp
f488023b63 Merge pull request #7366 from Huyvux12/fix/issue-7363-music-online-tags-overwrite 2026-11-11 22:20:24 +08:00
jxxghp
b5384dc7ab docs(site): align HDArea resources with version 3.0.32
Refs #7370
2026-11-11 22:14:19 +08:00
jxxghp
7af97c4429 Merge pull request #7373 from jxxghp/fix/issue-7370
feat(indexer): 高清视界切换 API Key 访问
2026-11-11 22:02:50 +08:00
jxxghp
18fe2ea387 feat(indexer): support HDArea REST API
Refs #7370
2026-11-11 21:53:16 +08:00
jxxghp
eaf833445f Merge pull request #7371 from jxxghp/fix/issue-7274
fix(indexer): support Piggo laboratory API (#7274)
2026-11-11 19:02:55 +08:00
jxxghp
123b201ba9 test(architecture): record Piggo dependency graph 2026-11-11 18:54:37 +08:00
jxxghp
8dc4b08114 fix(indexer): support Piggo laboratory API (#7274) 2026-11-11 18:32:59 +08:00
Huyvux12
2e0fc48646 fix(music): prefer online disc/track structure for manually selected release
When a MusicBrainz release is explicitly selected, the aligned track
already carries the release structure, but _merge_music_track_context
only filled missing local fields, so dirty local total_discs/disc_number
kept producing a spurious Disc layer (e.g. total_discs=2 on a 1-disc
release) and wrong track positions. Let online values win for
disc_number/track_number/total_tracks/total_discs on the selected-release
path only; auto-match keeps the fill-only behaviour.

Album scrape merge now prefers online total_discs as well, and forces
disc_number=1 for confirmed single-disc albums so a dirty local disc
number cannot pair with total_discs=1 as "2/1" in tags.

Fixes #7363
2026-11-11 07:15:29 +00:00
jxxghp
33cc86e225 Merge pull request #7364 from jxxghp/fix/issue-7360
fix(agent): 防止插件配置误覆盖与回执误判
2026-11-11 14:01:46 +08:00
jxxghp
ba034b20f0 test(agent): document regression test contracts 2026-11-11 13:55:27 +08:00
jxxghp
9323f00510 docs(agent): clarify config safeguards 2026-11-11 13:51:21 +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
1ec2bff817 Trae/agent s2h0 df (#7359) 2026-11-11 13:15:46 +08:00
Penguin Secret Agency
8be08ee773 feat(llm): 新增 UberLLM provider (#7302)
* feat(llm): 新增 UberLLM provider

* fix(llm): 调整 UberLLM 排序值

与 cheapaimodel 的排序修复协同:cheapaimodel 使用 60、GitHub Copilot 顺延为 61 后,UberLLM 顺延为 62,保持目录排序值唯一。

---------

Co-authored-by: sang nguyen <sangnguyen@sangs-MacBook-Pro-5.local>
Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-11-11 10:45:46 +08:00
Nicho Deng
192bd7d5b8 feat(llm): 新增 cheapaimodel provider (#7303)
* feat(llm): 新增 cheapaimodel provider

* fix(llm): 修正 cheapaimodel 排序冲突

cheapaimodel 与 Obscurify.ai 同为 59,合并后会留下重复排序值。将 cheapaimodel 调整为 60,GitHub Copilot 顺延为 61,保持新预设位于 Obscurify.ai 之后。

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-11-11 10:44:50 +08:00
gntv456
6166968f4c feat(indexer): 支持 FluxTorrent 兼容层站点搜索与用户数据 (#7355)
* feat(indexer): 支持 FluxTorrent 兼容层站点搜索与用户数据

好学(hxpt.org)已由 NexusPHP 迁移到 FluxTorrent,原有页面刮削全部失效。
FluxTorrent 提供 /api/v1/compat/nexusphp/* 只读 JSON 兼容层,本提交按该契约
新增索引器与用户数据解析器,并在分发层加入能力探测,使未在站点资源中登记
专站协议的站点也能被自动识别(站点清单是闭源发布资源,主仓无法新增条目)。

- 新增 FluxTorrentSpider:调用兼容层 torrents.json 搜索,按 category_newznab
  映射媒体类型,按 promotion 换算下载与上传量系数,下载地址携带开放 API 令牌
- 新增 FluxTorrentSiteUserInfo:解析兼容层 user.json 的用户资料与流量
- 新增同步与异步能力探测:站点未登记专站协议时,用站点令牌请求一次
  user.json,响应符合 {code, message, data, request_id} 信封即判定为 FluxTorrent
- 探测要求站点已配置令牌,并用命中 24 小时、未命中 30 分钟的双层 TTL 缓存
- 不下发分类与媒体类型筛选:兼容层的 category 只接受站内分类 ID,且客户端
  过滤会破坏分页续拉契约,分类筛选待站点资源发布链路补齐后再放开

* fix(indexer): 抽出用户数据模型解析,消除复杂度增长

CI 复杂度门禁报 IndexerModule.refresh_userdata 圈复杂度 15->16(上限 15)。
把 FluxTorrent 能力探测与模型选择抽成模块级函数 _resolve_userdata_schema,
refresh_userdata 的方法体不再因新增分支而增长。

* refactor(indexer): FluxTorrent 模块文件改为单词命名

命名门禁 test_new_host_production_modules_use_single_word_filenames 要求
app 下的模块文件名满足 [a-z][a-z0-9]*,flux_torrent.py 不合规 ⇒ 两个模块
改名为 fluxtorrent.py,同步更新导入与测试打桩路径。

* test(indexer): 修正发布时间断言并同步架构依赖基线

- 发布时间断言原先写死本机时区渲染结果,在 UTC 的 CI 上必然失败 ⇒ 改为对同一
  转换函数取期望值,只验证 Unix 时间戳经由 format_timestamp 输出
- dependency-baseline.json 新增 app.modules.indexer.spider.fluxtorrent 与
  app.modules.indexer.parser.fluxtorrent 的模块与导入边(edge_count 9973→9990、
  module_count 1151→1153),结构与既有 haidan 等专站模块一致,边界未越权

* docs(architecture): 同步架构快照的模块与导入边数量

架构依赖基线新增两个索引器模块后,docs/architecture-overview.md 的
快照表需同步:Python 模块 1151→1153、内部导入边 9,973→9,990。

* test(indexer): 补齐异步探测与失败路径用例,满足新文件覆盖率门槛

新增文件的覆盖率低水位要求 80%,补齐后 spider 90.81%、parser 92.21%:
- 异步能力探测命中与请求异常两条路径
- 站点无响应、响应不是 JSON 时的降级判定
- 异步搜索缺少令牌时的直接失败
- 用户接口空响应 / 非 JSON / 结构异常 / 业务错误码的错误信息
- 站点地址缺协议与空白地址的归一

* test(indexer): 覆盖协议解析的三条分支

存量文件覆盖率低水位要求未覆盖语句数不增长,补齐协议解析的已登记协议、
探测命中、未识别三种情况(同步与异步),以及用户数据模型名的两条分支。

* refactor(indexer): 按站点资源路由 FluxTorrent 协议

删除运行时能力探测与 TTL 缓存,搜索和用户数据直接使用站点资源声明的 parser/schema;保留 FluxTorrent spider 与用户数据解析器的注册,由站点构建配置决定路由。

---------

Co-authored-by: gntv456 <gntv456@users.noreply.github.com>
Co-authored-by: jxxghp <jxxghp@gmail.com>
2026-11-11 10:27:52 +08:00