diff --git a/server/services/qBittorrent/types/QBittorrentTorrentsMethods.ts b/server/services/qBittorrent/types/QBittorrentTorrentsMethods.ts index 6b2210bb3..4fa4e81b0 100644 --- a/server/services/qBittorrent/types/QBittorrentTorrentsMethods.ts +++ b/server/services/qBittorrent/types/QBittorrentTorrentsMethods.ts @@ -3,6 +3,7 @@ export type QBittorrentTorrentState = | 'missingFiles' | 'uploading' | 'pausedUP' + | 'stoppedUP' | 'queuedUP' | 'stalledUP' | 'checkingUP' @@ -10,7 +11,9 @@ export type QBittorrentTorrentState = | 'allocating' | 'downloading' | 'metaDL' + | 'forcedMetaDL' | 'pausedDL' + | 'stoppedDL' | 'queuedDL' | 'stalledDL' | 'checkingDL' diff --git a/server/services/qBittorrent/util/torrentPropertiesUtil.ts b/server/services/qBittorrent/util/torrentPropertiesUtil.ts index 0bb2fecf0..cb40fb3ab 100644 --- a/server/services/qBittorrent/util/torrentPropertiesUtil.ts +++ b/server/services/qBittorrent/util/torrentPropertiesUtil.ts @@ -41,6 +41,7 @@ export const getTorrentStatusFromState = (state: QBittorrentTorrentState): Torre statuses.push('seeding'); break; case 'pausedUP': + case 'stoppedUP': statuses.push('complete'); statuses.push('inactive'); statuses.push('stopped'); @@ -61,12 +62,14 @@ export const getTorrentStatusFromState = (state: QBittorrentTorrentState): Torre statuses.push('downloading'); break; case 'metaDL': + case 'forcedMetaDL': case 'downloading': case 'forcedDL': statuses.push('active'); statuses.push('downloading'); break; case 'pausedDL': + case 'stoppedDL': statuses.push('inactive'); statuses.push('stopped'); break;