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
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:
@@ -187,7 +187,8 @@ func (tb *Torbox) getTorboxStatus(status string, finished bool) string {
|
||||
downloading := []string{"paused", "downloading", "uploading",
|
||||
"checkingResumeData", "metaDL", "pausedUP", "queuedUP", "checkingUP",
|
||||
"forcedUP", "allocating", "downloading", "metaDL", "pausedDL",
|
||||
"queuedDL", "checkingDL", "forcedDL", "checkingResumeData", "moving"}
|
||||
"queuedDL", "checkingDL", "forcedDL", "checkingResumeData", "moving",
|
||||
"checking"}
|
||||
|
||||
var determinedStatus string
|
||||
switch {
|
||||
|
||||
@@ -235,6 +235,10 @@ func (s *Store) processFiles(torrent *Torrent, debridTorrent *types.Torrent, imp
|
||||
onFailed(err)
|
||||
return
|
||||
}
|
||||
s.logger.Debug().
|
||||
Str("torrent_name", debridTorrent.Name).
|
||||
Str("symlink_path", torrentSymlinkPath).
|
||||
Msg("Symlink processing complete, calling onSuccess")
|
||||
onSuccess(torrentSymlinkPath)
|
||||
return
|
||||
case "download":
|
||||
|
||||
Reference in New Issue
Block a user