Commit Graph

9836 Commits

Author SHA1 Message Date
InfinityPacer
8b4b5eb4fe chore(deps): upgrade chardet to 7.6.0 2026-10-06 02:44:02 +08:00
jxxghp
df45df8fba Merge pull request #6896 from JontyLee/fix/stale-cue-fallback 2026-10-05 21:09:20 +08:00
JontyLee
5cc0375ec1 fix(audio): ignore stale CUE sheets whose referenced files are gone
Adopt a CUE only when at least one FILE reference resolves to a real
file in the audio directory. Legacy WAV-era cue sheets shipped inside
FLAC split-track releases previously blocked every track transfer with
"CUE 引用的文件名与当前音频不一致" (and broken-index cues did the same);
they are now ignored with an info log and organization falls back to
the files' own tags. Cross-directory references and cues that still
point at existing files keep the current strict behavior.

Refs: https://github.com/jxxghp/MoviePilot/issues/6888
2026-10-05 20:20:34 +08:00
jxxghp
5f4eb47712 test(skills): align subscription API skill version contract
Keep the built-in skill version assertion in sync with the documented subscription clearing behavior. Refs #6894
2026-10-05 17:59:38 +08:00
jxxghp
791bcc00c0 fix(subscribe): persist cleared optional settings
Preserve explicit empty values for recognition words, keywords, paths, episode groups, downloaders, and audio thresholds. Add endpoint and persisted transaction regression coverage and document the update contract.

Refs #6894
2026-10-05 17:54:29 +08:00
jxxghp
84e3787b57 Merge pull request #6893 from MiCat-S/fix/nettest-tmdb-web-user-agent 2026-10-05 17:47:15 +08:00
jxxghp
fb652c74f4 fix(music): 支持关闭 CUE 识别整理分轨音频 2026-10-05 17:15:14 +08:00
LIN student
36e68b133c fix(nettest): TMDB 网站连通性测试使用程序自身 UA
网速连通性测试对所有目标统一发送浏览器 UA(NORMAL_USER_AGENT)。
www.themoviedb.org 对自称 Chrome、但 TLS 握手特征来自 Python 客户端的
请求返回 403 人机校验页(Just a moment...),因此网络正常时该项也固定
显示「错误码:403」。同一请求换成程序自身 UA(USER_AGENT)即返回 200;
TMDB API 两个目标不受影响。

tmdb_web 规则改为携带 USER_AGENT 请求头;未配置时沿用原有浏览器 UA。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 16:52:41 +08:00
jxxghp
3fe6ed74c3 Merge pull request #6892 from MiCat-S/fix/media-scrape-manage-permission
fix(media): 刮削接口要求管理权限,与手动整理和文件管理保持一致
2026-10-05 16:43:11 +08:00
jxxghp
ad4c92da9e Merge branch 'v3' into fix/media-scrape-manage-permission 2026-10-05 16:38:08 +08:00
jxxghp
49235b7dd6 Merge pull request #6891 from MiCat-S/fix/webpush-send-superuser 2026-10-05 16:33:21 +08:00
jxxghp
af5e8fef9b Merge pull request #6890 from MiCat-S/fix/agent-browser-private-network 2026-10-05 16:32:46 +08:00
jxxghp
19b3e49840 Merge pull request #6889 from MiCat-S/fix/public-setting-storage-options 2026-10-05 16:32:04 +08:00
LIN student
873c4c7087 fix(media): 刮削接口要求管理权限,与手动整理和文件管理保持一致
POST /api/v1/media/scrape/{storage} 只依赖 verify_token,任何登录用户都可
调用。该接口以 overwrite=True 调用刮削链,会覆盖目标目录已有的海报、背景图
和 NFO,音频文件还会改写标签;存储与路径完全由请求提供。

同类写操作 /transfer/manual、/transfer/manual/target-path、/storage/* 以及
整理记录的写操作都要求 manage 权限;前端只在文件管理页(需 manage 权限)
调用该接口,Agent 策略也已把 media.scrape 定为管理员操作。

现改为依赖 get_current_active_manage_user。_scrape_impl 内部没有使用令牌
载荷,去掉其中未使用的 Depends 参数。API_TOKEN/apikey 调用解析为 SUPERUSER
对应的超级管理员,行为不变。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 15:42:29 +08:00
LIN student
dc974b6699 fix(message): WebPush 主动推送接口仅限超级管理员
POST /message/webpush/send 只依赖 verify_token,会把调用方提供的
title、body、url 推送给 webpush_registry 中的全部浏览器订阅,包括其他
用户和管理员的浏览器。前端只调用 /message/webpush/subscribe,不调用该
接口。

改为与同模块 /message/web 一致的 get_current_active_superuser。
API_TOKEN / apikey 由 verify_token 映射为 SUPERUSER 对应的超级管理员
账号,经过该依赖后仍可调用,已有外部集成不受影响。

/message/webpush/subscribe 保持登录用户可用,每个用户的前端都会调用它
登记自己的浏览器。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 15:42:29 +08:00
LIN student
aa78bc9d8e fix(agent): 浏览器与验证码工具的私网访问参数仅限管理员
browse_webpage、recognize_captcha 的 allow_private_network 是模型可以直接
填写的工具参数,此前对任何调用方都生效。现与同工具的 evaluate、
get_cookies 保持一致:仅管理员可设置为 true,其他调用方返回
admin_required,并提示去掉该参数后只访问公网地址。

browse_webpage 的三项管理员检查合并到 _admin_required_error,run() 的
圈复杂度维持在门禁阈值以内。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 15:42:28 +08:00
LIN student
75d8b2e441 fix(system): 公开设置不再返回存储的连接配置
/system/setting/public/{key} 只要求登录用户,白名单中的 Storages 原样返回
整个存储列表,每项的 config 保存着各存储的连接配置和凭据(SMB 用户名密码、
alist 账号、115 token 等)。设置合同已将 Storages 标记为 sensitive,
/system/settings 默认会脱敏,只有这个公开接口直接返回原值。

前端 v3 已改用 /storage/options 读取存储名称和类型,公开接口的 Storages
目前只剩 Agent 的 config.public.get 和旧版前端页面会用到,它们只需要
name、type。因此保留该 key,改为与 /storage/options 相同的投影:只返回
name(缺省时取 type)和 type,跳过没有 type 的项。所有调用者返回相同
结果,超级管理员仍可通过 /system/setting/Storages 读取完整配置。

白名单内其他配置(目录、站点范围、集数定位规则、默认订阅规则、Follow
订阅者)不含连接凭据,保持原值返回。同步更新 docs/mcp-api.md 的接口说明。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 15:42:28 +08:00
jxxghp
4ca70b478b chore(release): bump backend and frontend to v3.1.1 2026-10-05 15:21:10 +08:00
jxxghp
fa5fa33db1 fix(lyrics): normalize LRCLIB music metadata 2026-10-05 13:10:10 +08:00
jxxghp
22704e9224 fix(api): allow dedicated identifier writes 2026-10-05 13:01:42 +08:00
jxxghp
6f0f528e2f feat(agent): add configurable output language 2026-10-05 07:35:05 +08:00
jxxghp
0ce5d97d84 Merge pull request #6884 from MiCat-S/fix/downloader-add-failure-name
fix(downloader): 添加种子失败提示改用种子名称
2026-10-04 20:29:41 +08:00
jxxghp
7038f56628 test(llm): restore Gemini SDK patch between tests 2026-10-04 20:19:37 +08:00
jxxghp
8c101b0096 Merge pull request #6883 from MiCat-S/fix/message-verify-log-token 2026-10-04 19:22:09 +08:00
jxxghp
a40d109364 Merge pull request #6882 from MiCat-S/fix/site-read-hide-credentials 2026-10-04 19:21:35 +08:00
LIN student
bdef005588 fix(downloader): 添加种子失败提示改用种子名称
qBittorrent、Transmission、rTorrent 添加任务失败,或添加后查不到任务时,
提示文本直接拼接 content。经过 _get_torrent_info 之后,种子文件的 content
已经是 bytes,于是日志、消息通知和下载失败记录里都会出现整段二进制 repr
(种子较大时有数万字符),失败原因无法阅读。

改为种子文件使用种子名称,磁力链接保留原文。提示前缀不变,现有多语言模板
仍能匹配。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 19:01:22 +08:00
LIN student
4416e278aa fix(message): 回调验证日志不再输出 token
消息回调验证入口 GET /api/v1/message/ 以 INFO 级别记录请求参数,其中的
token 就是 verify_apitoken 校验用的 API_TOKEN。日志经常被直接贴出来排查
问题,因此去掉这个字段,其余排查用参数保持不变。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 19:01:22 +08:00
LIN student
3bdf09dc6f fix(site): 非超级管理员读取订阅站点和域名详情时不返回认证字段
/site/rss 与 /site/domain/{site_url} 只依赖 verify_token,直接返回完整的
Site 模型,其中包含 cookie、apikey、token、rss。同模块的 /site/agent 已经
对非超级管理员剔除这些字段,/site/ 列表也要求 manage 权限,两个接口与之
不一致。

前端订阅编辑和工作流「获取种子」动作只用到站点的 id、name、is_active,
因此非超级管理员改为复用 _project_agent_site(include_secrets=False) 投影,
超级管理员保持原有完整字段。

read_rss_sites 的返回标注由 List[dict] 改为实际的 Site 或投影字典,site.py
的 mypy 债务减少 2(return-value、type-arg 各 1),已固化低水位并同步文档
指标。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 19:01:22 +08:00
jxxghp
c8869d4b89 fix(api): classify notification image transport route 2026-10-04 16:33:11 +08:00
jxxghp
03a285a2a6 fix(wechat): proxy douban notification images 2026-10-04 16:19:58 +08:00
jxxghp
f4b1e7e186 fix(image): retry transient cover fetch failures 2026-10-04 14:52:04 +08:00
jxxghp
3f206171e7 fix(feishu): apply image referer and proxy policy
Refs #6879
2026-10-04 12:23:08 +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
3a6f3866e0 test(agent): remove the API skill line limit 2026-10-04 09:20:37 +08:00
jxxghp
d8031e29a8 fix(agent): guide captcha OCR failures to browser vision 2026-10-04 09:19:29 +08:00
jxxghp
3bdd756626 docs(music): keep metadata details in the API category guide 2026-10-04 09:14:46 +08:00
jxxghp
4d74d4c2e9 fix(agent): route API calls to the local backend (#6875) 2026-10-04 09:05:33 +08:00
jxxghp
fcf12a1e2f docs(architecture): sync music normalization dependency count 2026-10-04 09:04:09 +08:00
jxxghp
754da97d97 fix(music): apply simplified metadata to manual transfers
Normalize album details and final music template fields while preserving local edition evidence, multi-artist credits and source objects. Refs #6870.
2026-10-04 08:47:15 +08:00
InfinityPacer
6e295d5d2f fix(subscribe): preserve accepted searches for paused subscriptions 2026-10-04 00:22:57 +08:00
jxxghp
1d30d6e8a4 Merge pull request #6872 from jxxghp/codex/issue-6869-anibt-rss
fix(indexer): support XML feeds in site search
2026-10-03 23:52:44 +08:00
jxxghp
378944aeba fix(indexer): support XML feeds in site search 2026-10-03 23:47:04 +08:00
Cat
2a31b51687 fix(transfer): 整理规划的业务拒绝不再按系统错误告警 (#6868) 2026-10-03 23:03:15 +08:00
ChantXu64
8b30668cf3 fix(llm): preserve max reasoning effort (#6866) 2026-10-03 22:22:39 +08:00
ChantXu64
3c56f0bfdc fix(llm): 允许温度留空以省略不兼容的请求参数 (#6865) 2026-10-03 19:55:43 +08:00
jxxghp
3c8cc791be Merge pull request #6854 from ranzhigg/codex/snapshot-reconciliation-index
perf(monitor): index incremental snapshot reconciliation
2026-10-03 09:08:58 +08:00
jxxghp
afa6a42a55 docs(architecture): sync mypy debt metric 2026-10-03 09:03:56 +08:00
jxxghp
610ef82270 Merge origin/v3 into PR branch 2026-10-03 09:00:49 +08:00