jxxghp
6d7b0733af
fix(transfer): avoid polluted history fallback at shared roots
...
Parent-path fallback should stop at shared download roots so an old root-level download cannot hijack unrelated manual transfers. Keep exact DownloadFiles matches allowed at the shared root to preserve valid no-subfolder lookups.
Closes #5716
Regression from afcd895f52
Follow-up to #5702
2026-05-07 13:01:20 +08:00
jxxghp
6532c60a3c
Refine agent background reply handling
2026-04-30 00:25:23 +08:00
jxxghp
460d716512
feat: add batch AI re-organize for transfer history and search result recommendation
...
- Implement batch AI re-organize endpoint for transfer history with progress tracking
- Add batch_manual_transfer_redo system task template and prompt generation
- Refactor agent_manager to support generic background prompt execution
- Add AIRecommendChain for search result recommendation using agent background prompt
- Update search endpoints to use new AIRecommendChain and remove legacy code
- Enhance test cases for batch manual transfer redo
- Minor code cleanup and style fixes
2026-04-29 22:16:04 +08:00
jxxghp
afcd895f52
fix: backfill transfer download history matching
...
Fixes #5702
2026-04-28 08:55:40 +08:00
jxxghp
011535fbc3
feat: add retry actions for failed transfers
2026-04-16 22:07:21 +08:00
InfinityPacer
81828948dd
fix(transfer): tighten queue cleanup edge cases
2026-04-14 14:45:18 +08:00
InfinityPacer
eda73e14f7
refactor(transfer): make queue job migration explicit
2026-04-14 14:45:18 +08:00
InfinityPacer
6aec326d05
fix(transfer): fail stale queue tasks on errors
2026-04-14 14:45:18 +08:00
InfinityPacer
d36dd69ec3
fix(transfer): clean migrated queue jobs
2026-04-14 14:45:18 +08:00
jxxghp
0c51d79be7
feat(agent): 合并同批次整理失败的agent重试调用,避免重复浪费token
...
同一download_hash或同一源目录下的失败记录在5分钟缓冲期内合并为一次agent调用,
批量处理时只识别一次媒体信息后复用到所有文件。
2026-04-09 07:16:56 +08:00
jxxghp
d7a5c32b08
feat: 整理失败时AI智能体自动重试
...
- 新增 delete_transfer_history 工具供智能体删除失败历史记录
- 新增 transfer-failed-retry 技能引导智能体执行重试流程
- 新增 AI_AGENT_RETRY_TRANSFER 配置项控制是否启用
- AgentManager 新增 retry_failed_transfer() 方法创建独立会话执行重试
- 整理失败和媒体未识别时自动触发智能体重试
2026-04-03 13:33:27 +08:00
jxxghp
6065c29891
Revert "Merge pull request #5573 from wikrin/refactor-static-methods-conversion"
...
This reverts commit b8fc20b981 , reversing
changes made to e09cfc6704 .
2026-03-14 18:21:31 +08:00
Attente
b89825525a
refactor(helper): 将DirectoryHelper、RuleHelper和TorrentHelper方法改为静态方法
...
- 移除不必要的实例化操作,直接使用类方法
2026-03-13 19:50:10 +08:00
YuF-9468
b4f64eb593
fix: preserve download context when re-organizing from history
2026-03-09 19:33:49 +08:00
景大侠
f978f9196f
fix(transfer): 修复移动模式下过早删除种子的问题
...
- 撤回提交 4502a9c 的部分改动
2026-02-13 13:28:05 +08:00
景大侠
40395b2999
feat: 在构造待整理文件列表时引入过滤逻辑以简化后续处理
2026-02-06 20:56:26 +08:00
大虾
30488418e5
修复 整理时download_hash参数被覆盖
...
导致后续文件均识别成同一个媒体信息
2026-02-03 18:59:32 +08:00
jxxghp
7b8cd37a9b
feat(transfer): enhance job removal methods for thread safety and strict checks
2026-02-01 16:58:32 +08:00
copilot-swe-agent[bot]
eff7818912
Improve documentation and fix validation bug in add_task
...
Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com >
2026-01-31 16:44:01 +00:00
copilot-swe-agent[bot]
270bcff8f3
Fix task loss issue in do_transfer multi-threading batch adding
...
Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com >
2026-01-31 16:38:55 +00:00
景大侠
f57ba4d05e
修复 整理时可能误跟随TMDB变化的问题
2026-01-29 15:04:42 +08:00
jxxghp
d8dc53805c
feat(transfer): 整理事件增加历史记录ID
2026-01-26 21:29:05 +08:00
jxxghp
7218d10e1b
feat(transfer): 拆分字幕和音频整理事件
2026-01-26 19:33:50 +08:00
Attente
f55916bda2
feat(transfer): 支持按条件查询订阅获取自定义识别词用于文件转移
2026-01-25 11:34:03 +08:00
景大侠
8c7dd6bab2
修复 原盘目录不刮削
2026-01-24 11:42:00 +08:00
景大侠
1532014067
修复 多下载器返回相同种子造成的重复整理
2026-01-24 01:41:48 +08:00
景大侠
fa9f604af9
修复 入库通知不显示集数
...
因过早清理作业导致
2026-01-24 01:17:23 +08:00
jxxghp
1b3ae6ab25
fix 下载器整理标签设置
2026-01-23 18:10:59 +08:00
copilot-swe-agent[bot]
b2cb3768c1
Fix remove_job to use __get_id for consistent job removal
...
Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com >
2026-01-22 14:38:33 +00:00
jxxghp
bbb3975b67
更新 transfer.py
2026-01-22 22:31:52 +08:00
jxxghp
4502a9c4fa
fix:优化移动模式删除逻辑
2026-01-22 22:15:40 +08:00
景大侠
b1e60a4867
修复 下载器监控
2026-01-22 21:34:50 +08:00
jxxghp
1efe3324fb
fix:优化设置种子状态标签的时机
2026-01-22 08:24:23 +08:00
jxxghp
bbe831a57c
优化 transfer.py 中任务处理逻辑,增强错误信息反馈
2026-01-21 23:55:20 +08:00
jxxghp
90c86c056c
fix all_tasks
2026-01-21 23:30:39 +08:00
jxxghp
36f22a28df
fix 完成状态计算
2026-01-21 23:23:37 +08:00
jxxghp
ac03c51e2c
更新 transfer.py
2026-01-21 23:06:29 +08:00
jxxghp
bd9e92f705
更新 transfer.py
2026-01-21 22:59:30 +08:00
jxxghp
abbd2253ad
fix deadlock
2026-01-21 22:46:04 +08:00
jxxghp
46466624ae
fix:优化下载器整理控制逻辑
2026-01-21 22:21:17 +08:00
jxxghp
0ba8d51b2a
fix:优化下载器整理
2026-01-21 21:31:55 +08:00
jxxghp
a1408ee18f
feat:TRANSFER_THREADS 变更监听
2026-01-21 20:46:34 +08:00
jxxghp
58030bbcff
fix #5392
2026-01-21 20:12:05 +08:00
jxxghp
e1b3e6ef01
fix:只有媒体文件整完成才触发事件,以保持与历史一致
2026-01-21 20:07:18 +08:00
jxxghp
68402aadd7
fix:去除文件操作全局锁
2026-01-21 08:31:51 +08:00
jxxghp
85cacd447b
feat: 为文件整理服务引入多线程处理并优化进度管理。
2026-01-21 08:16:02 +08:00
景大侠
16bd71a6cb
优化整理代码效率、减少额外递归
2026-01-20 14:38:41 +08:00
jxxghp
2c62ffe34a
feat:优化字幕和音频文件整理方式
2026-01-20 13:24:35 +08:00
Pollo
41381a920c
fix: 修复订阅自定义识别词在整理时不生效的问题
...
问题:订阅中添加的自定义识别词(特别是集数偏移)在下载时正常生效,
但在下载完成整理时没有生效。
根因:下载历史中未保存识别词,整理时 MetaInfoPath 未接收
custom_words 参数。
修复:
- 在 DownloadHistory 模型中添加 custom_words 字段
- 下载时从 meta.apply_words 获取并保存识别词到下载历史
- MetaInfoPath 函数添加 custom_words 参数支持
- 整理时从下载历史获取 custom_words 并传递给 MetaInfoPath
- 添加 Alembic 迁移脚本 (2.2.3)
- 添加相关单元测试
2026-01-19 15:46:00 +08:00
景大侠
2edfdf47c8
移除整理进度数据中无用的文件列表
2026-01-17 00:20:09 +08:00