fix: handle TorBox 'checking' state as downloading, add symlink completion logging
All checks were successful
CI/CD / Build & Push Docker Image (push) Successful in 1m10s

- 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>
This commit is contained in:
2026-01-31 11:56:14 -08:00
committed by John Ogle
parent 4cf8246550
commit f5b1f100e2
2 changed files with 6 additions and 1 deletions

View File

@@ -187,7 +187,8 @@ func (tb *Torbox) getTorboxStatus(status string, finished bool) string {
downloading := []string{"paused", "downloading", "uploading", downloading := []string{"paused", "downloading", "uploading",
"checkingResumeData", "metaDL", "pausedUP", "queuedUP", "checkingUP", "checkingResumeData", "metaDL", "pausedUP", "queuedUP", "checkingUP",
"forcedUP", "allocating", "downloading", "metaDL", "pausedDL", "forcedUP", "allocating", "downloading", "metaDL", "pausedDL",
"queuedDL", "checkingDL", "forcedDL", "checkingResumeData", "moving"} "queuedDL", "checkingDL", "forcedDL", "checkingResumeData", "moving",
"checking"}
var determinedStatus string var determinedStatus string
switch { switch {

View File

@@ -235,6 +235,10 @@ func (s *Store) processFiles(torrent *Torrent, debridTorrent *types.Torrent, imp
onFailed(err) onFailed(err)
return return
} }
s.logger.Debug().
Str("torrent_name", debridTorrent.Name).
Str("symlink_path", torrentSymlinkPath).
Msg("Symlink processing complete, calling onSuccess")
onSuccess(torrentSymlinkPath) onSuccess(torrentSymlinkPath)
return return
case "download": case "download":