From edd50147e78c29dc6deadd060a695974e558aabf Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Tue, 13 May 2025 15:05:14 +0800 Subject: [PATCH] fix(qbittorrent): unknown state after seeding complete --- pkg/downloader/qbittorrent/qbittorrent.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/downloader/qbittorrent/qbittorrent.go b/pkg/downloader/qbittorrent/qbittorrent.go index 85a0484..ae0d6f1 100644 --- a/pkg/downloader/qbittorrent/qbittorrent.go +++ b/pkg/downloader/qbittorrent/qbittorrent.go @@ -189,11 +189,11 @@ func (c *qbittorrentClient) Info(ctx context.Context, handle *downloader.TaskHan // Combining and converting all info state := downloader.StatusDownloading switch torrents[0].State { - case "downloading", "pausedDL", "allocating", "metaDL", "queuedDL", "stalledDL", "checkingDL", "forcedDL", "checkingResumeData", "moving": + case "downloading", "pausedDL", "allocating", "metaDL", "queuedDL", "stalledDL", "checkingDL", "forcedDL", "checkingResumeData", "moving", "forcedMetaDL": state = downloader.StatusDownloading - case "uploading", "queuedUP", "stalledUP", "checkingUP": + case "uploading", "queuedUP", "stalledUP", "checkingUP", "forcedUP": state = downloader.StatusSeeding - case "pausedUP": + case "pausedUP", "stoppedUP": state = downloader.StatusCompleted case "error", "missingFiles": state = downloader.StatusError