- Add 'checking' to the list of downloading states in getTorboxStatus()
so TorBox torrents in transitional state don't get marked as error
- Add debug log before calling onSuccess to trace state update flow
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add a fallback in onSuccess that ensures the torrent state is set to
'pausedUP' after updateTorrent returns. This catches edge cases where
updateTorrent might not set the state correctly.
The check:
1. Verifies state after updateTorrent returns
2. If state is not 'pausedUP' but we have a valid symlink path, force update
3. Logs a warning with diagnostic info when fallback triggers
This should definitively fix the TorBox downloads stuck in 'downloading'
state issue (dcy-355).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add logging at key points in the download flow to diagnose why TorBox
downloads get stuck in 'downloading' state despite completion:
- Log initial state at processFiles start
- Log when download loop exits
- Log when onSuccess callback is invoked
- Log condition evaluation in updateTorrent
- Log when state is set to pausedUP
Also fix missing return after onFailed for empty symlink path edge case.
Part of dcy-355 investigation.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Added debug logging to see actual DownloadState values from TorBox API.
Also made status comparison case-insensitive.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
For instant/cached TorBox downloads, the API returns DownloadFinished=false
(no download happened - content was already cached) with DownloadState="cached"
or "completed". These should be treated as "downloaded" since content is
immediately available.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Previous fix relied on IsReady() calculation which might still fail
due to edge cases with progress/AmountLeft values. This fix directly
sets state to pausedUP when debridTorrent.Status == "downloaded" and
TorrentPath is set, bypassing the IsReady() check entirely.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Fixed race condition where TorBox reports DownloadFinished=true but
Progress < 1.0, causing IsReady() to return false and state to stay
"downloading" instead of transitioning to "pausedUP".
Also added Gitea CI workflow to push images to internal registry.
Fixes: dcy-355
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Rewrite arr storage to fix issues with repair
- Fix issues with restarts taking longer than expected
- Add bw_limit to rclone config
- Add support for skipping multi-season
- Other minor bug fixes