From 937086f9a874439b81d934feee6024b59937b39b Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:13:14 -0600 Subject: [PATCH] fix: match live recheck action in Recheck: missing files The repo copy had empty conditions, which qui 1.35.0 rejects with 400 "At least one action must be configured". Use the live rule's recheck action (STATE = missingFiles, last activity under 24 h). Co-Authored-By: Claude Sonnet 5.5 --- CLAUDE.md | 3 +-- README.md | 2 +- qbit/Recheck missing files.json | 20 +++++++++++++++++++- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 73ca57c..ca4693d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -21,7 +21,6 @@ QUI automation workflows for qBittorrent torrent lifecycle management. ## Known Live Drift (as of 2026-06-21) -Live instance predates some repo improvements. Two automations differ: +Live instance differs from the repo on one automation: 1. **HL-remove-limits** — live has `intervalSeconds: null` (explicit null); repo omits the field (equivalent — both mean "use qui default interval"). No action needed. -2. **Recheck: missing files** — live has an old-style explicit `forceRecheck` condition (`STATE = missingFiles`); repo has intentionally empty conditions (the correct newer form per qui's built-in recheck action). Live instance should be updated to match repo when convenient. diff --git a/README.md b/README.md index c2c5219..1c492b5 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Tagging and maintenance: | 5 | Tag: stalledDL | 30 min | Tag `stalledDL` for stalled downloads | | 6 | Tag: tracker issue | 30 min | Tag `issue` for errored, tracker-down, or missing-files states | | 7 | Delete: unregistered | 15 min | Delete unregistered torrents when added 90+ minutes ago and the tracker is not down | -| 8 | Recheck: missing files | 1 h | Built-in qui recheck action. Empty conditions are intentional. | +| 8 | Recheck: missing files | 1 h | Recheck torrents in `missingFiles` state with activity in the last 24 h | Limits: diff --git a/qbit/Recheck missing files.json b/qbit/Recheck missing files.json index 4a5a3eb..81c0b9b 100644 --- a/qbit/Recheck missing files.json +++ b/qbit/Recheck missing files.json @@ -6,7 +6,25 @@ "*" ], "conditions": { - "schemaVersion": "1" + "schemaVersion": "1", + "recheck": { + "enabled": true, + "condition": { + "operator": "AND", + "conditions": [ + { + "field": "STATE", + "operator": "EQUAL", + "value": "missingFiles" + }, + { + "field": "LAST_ACTIVITY_AGE", + "operator": "LESS_THAN", + "value": "86400" + } + ] + } + } }, "intervalSeconds": 3600, "sortOrder": 8