Aqr-K
598d1663b1
fix(download): preserve protocol failures and isolate site updates ( #7143 )
...
* fix(download): preserve protocol failures and isolate site updates
* test: cover tracker token lifecycle and record dependency facts
---------
Co-authored-by: jxxghp <jxxghp@gmail.com >
2026-10-23 07:22:22 +08:00
jxxghp
4bf11c3277
fix(transmission): confirm torrent state around episode selection
2026-10-21 15:23:42 +08:00
JontyLee
0609ac9e01
fix(download): 复用下载器已有任务时不再重复通知与记录文件明细 ( #7078 )
2026-10-19 17:56:58 +08:00
jxxghp
4f98486e25
fix: restore popular years and safe Transmission selection
2026-10-19 12:17:56 +08:00
DDSRem
2de976f6b3
Merge pull request #7050 from DDSRem-Dev/codex-comment-migration
...
docs: 统一全项目中文注释和结构化契约说明
2026-10-17 19:26:29 +08:00
jxxghp
79d5e5aa71
fix(types): govern Transmission module SDK projections
2026-10-17 06:35:39 +08:00
jxxghp
d11bf31953
fix(transmission): initialize disconnected client state and type SDK contracts
2026-10-17 06:19:42 +08:00
Cat
6b50942ebc
fix(transmission): 对齐 transmission-rpc 排队状态取值 ( #7032 )
2026-10-16 22:10:38 +08:00
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
58bb4961af
fix: bound downloader connection retries for v3.0.8
2026-09-23 18:13:39 +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
InfinityPacer
24671f8f18
refactor(runtime): lazily activate host modules ( #6331 )
2026-08-16 16:07:38 +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
2b031e7e05
fix: 兼容 transmission-rpc v7 文件列表接口
2026-06-14 23:53:26 +08:00
jxxghp
bef2a81296
fix downloader task status queries
2026-06-14 18:23:18 +08:00
jxxghp
303e7ee16e
feat: add downloader incomplete suffix toggles
2026-06-13 08:43:37 +08:00
jxxghp
4d8c910f0d
fix: enable incomplete file suffix for downloaders
2026-05-25 05:58:05 +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
jxxghp
51b8f7c713
fix #4721
2025-08-10 09:11:44 +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
景大侠
f93a1540af
fix TR模块报错找不到_protocol属性
...
v2.5.9引入的bug
2025-07-07 17:05:28 +08:00
Attente
0f0c3e660b
style: 清理空白字符
...
移除代码中的 trailing whitespace 和空行缩进, 提升代码整洁度
2025-06-29 22:49: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