jxxghp
0f3a4e4c15
refactor: rely on transfer chain invariants
2026-05-14 07:55:33 +08:00
jxxghp
f4423e121e
fix: aggregate metadata scrape events
2026-05-14 07:38:06 +08:00
jxxghp
f0bc1bd681
fix: prevent storage operations in preview mode and add tests for transfer preview logic
2026-05-13 13:39:57 +08:00
album
05b34b9c26
feat(transfer): 增加手动整理预览模式(preview mode)
...
- ManualTransferItem/TransferTask 增加 preview 字段,支持同一接口双模式
- /api/v1/transfer/manual 透传 preview,预览时返回结构化结果不落盘
- ChainBase.transfer 增加 preview 参数并透传到 run_module
- TransferChain.do_transfer 预览分支复用完整命名/覆盖判定逻辑(dry-run)
- TransferChain.do_transfer 预览结束后显式 finish_task/fail_task,避免任务残留 running 状态导致重复预览失败
- TransHandler.transfer_media 预览分支跳过实际 copy/move/link/delete,仅返回目标路径
- FileManagerModule.transfer 透传 preview 参数
- 修复 /manual 失败分支 dict 类型导致 Response.message 校验错误
- 兼容性:preview 字段有默认值,旧客户端不传参时行为不变
2026-05-12 10:14:58 +08:00
jxxghp
adb7aa6aa9
fix: prevent repeated scans after history-based exits
...
Only mark downloader tasks as organized after a transfer history record exists, including existing-history skips and unrecognized media failures.
2026-05-10 10:25:39 +08:00
jxxghp
4d132c424a
fix: avoid duplicate image fetch in transfer
...
Keep transfer recognition results ready for scraping without fetching images twice on the same path. Also ensure redo-by-path transfer recognition still populates image data before metadata scraping.
2026-05-10 08:22:27 +08:00
jxxghp
c52327c248
fix: only fetch images for scrape flows
...
Default title and path recognition to skip image fetching, while keeping scrape entrypoints and transfer-to-scrape paths populated with image data. This preserves lightweight recognition behavior without breaking metadata scraping.
2026-05-10 08:14:08 +08:00
jxxghp
1d97f2e043
fix: align media recognition fallback and shared reporting
...
Route title and path lookups through the fallback-aware entrypoints so auxiliary matches can reuse pre-assist keywords without forcing image fetches in lightweight flows. Also reduce noisy agent shutdown logging during cleanup.
2026-05-10 07:54:55 +08:00
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