From f5b1f100e22c9efd13171a52a025274adccc5615 Mon Sep 17 00:00:00 2001 From: decypharr/crew/susan Date: Sat, 31 Jan 2026 11:56:14 -0800 Subject: [PATCH] fix: handle TorBox 'checking' state as downloading, add symlink completion logging - 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 --- pkg/debrid/providers/torbox/torbox.go | 3 ++- pkg/wire/torrent.go | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/debrid/providers/torbox/torbox.go b/pkg/debrid/providers/torbox/torbox.go index 64af4c5..2301506 100644 --- a/pkg/debrid/providers/torbox/torbox.go +++ b/pkg/debrid/providers/torbox/torbox.go @@ -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 { diff --git a/pkg/wire/torrent.go b/pkg/wire/torrent.go index 8fc9bf5..6387264 100644 --- a/pkg/wire/torrent.go +++ b/pkg/wire/torrent.go @@ -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":