ranzhigg
383fb82b89
fix(transmission): normalize raw fallback progress ( #7017 )
...
* fix(transmission): normalize raw fallback progress
* fix(transmission): satisfy type ratchet for progress helper
Annotate and normalize the fallback progress helper so the stricter V3 typing gate does not regress.
Co-authored-by: Codex <codex@openai.com >
* docs: sync mypy metric after progress fix
---------
Co-authored-by: ranzhigg <ranzhigg@users.noreply.github.com >
Co-authored-by: Codex <codex@openai.com >
Co-authored-by: jxxghp <jxxghp@gmail.com >
2026-10-16 12:27:33 +08:00
jxxghp
4955b7b9ea
fix: harden backend isolation and execution safety
2026-10-16 09:11:28 +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
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
jxxghp
53e0c6c5c0
fix(transmission): normalize parsed torrent year type
2026-09-14 21:11:05 +08:00
jxxghp
8072b7d78f
Refactor application architecture and compatibility boundaries
2026-09-13 12:53:00 +08:00
jxxghp
b4b5f82511
refactor(modules): narrow package root exports
2026-08-29 21:19:00 +08:00
jxxghp
9dbe424c3d
refactor(config): retire RuntimeSettingsCompat host usage
2026-08-26 15:55:21 +08:00
jxxghp
52fd495d38
refactor: normalize downloader file contracts
2026-08-24 02:10:04 +08:00
jxxghp
6b65dc5d12
refactor: unify module runtime settings
2026-08-24 00:19:57 +08:00
jxxghp
5128ae9e1e
refactor: 推进后端分层架构治理
2026-08-18 00:29:14 +08:00
jxxghp
7e851dbfa7
refactor(chain): 处理链功能域 mixin 化,清理未使用导入并根治兼容层循环导入
...
- ChainBase 拆分为 RecognitionMixin/MessageProcessingMixin/NotificationMixin
- TransferChain 拆分为 7 个功能 mixin(_mixins.py),SubscribeChain 音乐订阅域拆出 _music.py
- 斜杠命令交互四件套收敛为 InteractionChainMixin 委托,会话管理器移至 application 层,chain 层不再 re-export
- 模块基础类收敛到 app/modules/_base(notification/mediaserver 语义重命名)
- 清理 app/chain/__init__.py 24 个未使用导入,修正 49 处测试 patch 目标到实际命名空间
- 兼容层 legacy 符号不再并入 __all__,根治 schemas 初始化反向拉起 application.transfer 的循环导入
- 修复 bangumi 集数为字符串时 set_bangumi_info 抛 TypeError
- 新增重复代码等架构门禁测试;capability 清单校验排除下划线内部目录
2026-08-16 16:30:16 +08:00
jxxghp
96118e73e7
refactor(string): split utilities by responsibility
2026-08-15 08:03:55 +08:00
jxxghp
369d7d6448
refactor: reorganize backend module boundaries
2026-08-14 19:53:33 +08:00
jxxghp
7b3444c366
refactor backend module architecture
2026-08-14 15:45:38 +08:00
jxxghp
94b8252fdd
fix transmission missing limit fields
2026-06-15 18:30:41 +08:00
jxxghp
6a635ac720
feat: enhance agent download task controls
2026-06-15 13:51:35 +08:00
jxxghp
bef2a81296
fix downloader task status queries
2026-06-14 18:23:18 +08:00
jxxghp
1f49f9b454
fix: normalize downloader return paths
...
Fixes #5773
2026-05-15 18:15:42 +08:00
jxxghp
aae50004b1
feat: 新增修改下载任务Agent工具,查询下载任务支持返回标签
...
- 新增 modify_download Agent工具,支持通过hash修改下载任务的标签、开始和暂停下载
- 在 ChainBase 及三个下载器模块中新增 set_torrents_tag 方法
- DownloadingTorrent schema 新增 tags 字段
- 各下载器模块构建 DownloadingTorrent 时填充 tags
- query_download_tasks 工具输出中新增 tags 字段
2026-03-24 18:33:06 +08:00
jxxghp
8c6dca1751
Merge pull request #5277 from Seed680/v2
2025-12-25 19:26:26 +08:00
noone
cf488d5f5f
fix(qbittorrent): 修复种子文件读取和重复检查问题
...
- 将变量名从 torrent 改为 torrent_from_file 以避免混淆
- 修复添加种子任务失败时的错误检查逻辑
- 使用 getattr 函数安全获取种子文件的名称和大小属性
- 修复已存在种子任务检查时的属性访问问题
fix(transmission): 修复种子添加和重复检查逻辑
- 将变量名从 torrent 改为 torrent_from_file 以避免混淆
- 修复添加任务后的返回值变量名
- 使用 getattr 函数安全获取种子文件的名称和大小属性
- 修复已存在种子任务检查时的属性访问问题
- 修正种子哈希获取的变量引用
2025-12-25 19:09:45 +08:00
stkevintan
378ba51f4d
support path_mapping for downloader
2025-12-08 16:25:46 +08:00
stkevintan
2affa7c9b8
Support remote file uri when adding downloads
2025-12-06 19:33:52 +08:00
Attente
ca5ec8af0f
feat(config): 优化配置变更事件处理机制
2025-11-27 23:17:34 +08:00
jxxghp
343109836f
fix cache
2025-08-23 14:06:44 +08:00
jxxghp
4699f511bf
Handle magnet links in torrent parsing and downloader modules ( #4815 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: jxxghp <jxxghp@live.cn >
2025-08-23 10:51:32 +08:00
jxxghp
c6c84fe65b
rename
2025-08-21 16:02:50 +08:00
jxxghp
3d2ff28bcd
fix download
2025-08-20 23:38:51 +08:00
jxxghp
dadc525d0b
feat:种子下载使用缓存
2025-08-20 22:03:18 +08:00
Attente
1f6dc93ea3
fix(transfer): 修复目录监控下意外删除未完成种子的问题
...
- 如果种子尚未下载完成,则直接返回 False
2025-08-06 23:13:01 +08:00
wumode
2fa8a266c5
fix:#4691
2025-08-03 13:56:58 +08:00
jxxghp
4dd5ea8e2f
add del
2025-06-27 07:53:10 +08:00
jxxghp
8068523d88
fix downloader
2025-06-26 20:52:17 +08:00
jxxghp
1f44e13ff0
add reload logging
2025-06-23 10:14:22 +08:00
wumode
f737f1287b
fix(api): 无法设置非默认下载器状态
2025-06-13 08:43:34 +08:00
jxxghp
8ed87294e2
v2.5.5-1
...
- 修复下载器监控问题
2025-06-12 07:08:19 +08:00
jxxghp
64eba46a67
fix
2025-06-11 07:07:55 +08:00
jxxghp
bbfd8ca3f5
fix Config reload
2025-06-03 23:08:58 +08:00
jxxghp
b4ed2880f7
refactor:重构配置热加载
2025-06-03 20:56:21 +08:00
jxxghp
f9b0db623d
fix cython type error
2025-03-23 21:39:37 +08:00
jxxghp
c32b845515
feat:actions增加识别选项
2025-03-02 09:45:24 +08:00
jxxghp
1317d9c4f0
fix actions
2025-02-19 16:43:42 +08:00
Attente
9756bf6ac8
refactor(downloader): 新增支持种子文件布局处理
...
- 在 `DownloadChain` 中根据`种子文件布局`拼接`savepath`
- 在 `QbittorrentModule` 和 `TransmissionModule` 中添加种子文件布局信息
- 修改 `download` 方法的返回值,增加种子文件布局参数
2024-12-21 04:50:10 +08:00
Aqr-K
825fc35134
feat(modules): 增加子级 type 分类。
...
- 在 `types` 里,针对各个模块的类型进行子级分类。
- 为每个模块统一添加 `get_subtype` 方法,这样一来,能更精准快速地区分与调用子类的每个模块,又能获取 ModuleType 所规定的分类以及对应存在的子模块类型支持列表,从而有效解决当下调用时需繁琐遍历每个 module 以获取 get_name 或 _channel 的问题。
- 解决因消息渠道前端返回所保存的 type 与后端规定值不一致,而需要频繁调用 _channel 私有方法才能获取分类所可能产生的问题。
2024-12-03 14:57:19 +08:00
jxxghp
0feecc3eca
fix #3204
2024-11-23 11:48:23 +08:00
jxxghp
a0ad8faaf7
fix #2913
2024-10-23 14:43:47 +08:00
InfinityPacer
9255c85a85
refactor(module): unify config retrieval logic
2024-10-20 18:56:52 +08:00
jxxghp
363f12ed5a
refactor:Module加入执行优先顺序
2024-10-19 19:31:25 +08:00
jxxghp
603ab97665
add ModuleType Schema
2024-10-12 11:50:00 +08:00