fix(qbittorrent): unknown state after seeding complete

pull/2224/merge
Aaron Liu 2025-05-13 15:05:14 +08:00
parent 006bcabcdb
commit edd50147e7
1 changed files with 3 additions and 3 deletions

View File

@ -189,11 +189,11 @@ func (c *qbittorrentClient) Info(ctx context.Context, handle *downloader.TaskHan
// Combining and converting all info // Combining and converting all info
state := downloader.StatusDownloading state := downloader.StatusDownloading
switch torrents[0].State { 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 state = downloader.StatusDownloading
case "uploading", "queuedUP", "stalledUP", "checkingUP": case "uploading", "queuedUP", "stalledUP", "checkingUP", "forcedUP":
state = downloader.StatusSeeding state = downloader.StatusSeeding
case "pausedUP": case "pausedUP", "stoppedUP":
state = downloader.StatusCompleted state = downloader.StatusCompleted
case "error", "missingFiles": case "error", "missingFiles":
state = downloader.StatusError state = downloader.StatusError