Skip to content

Commit

Permalink
fix(qBittorrent): Missing states (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
LXGaming authored Nov 6, 2024
1 parent aae3d3c commit 1c1ddee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ export type QBittorrentTorrentState =
| 'missingFiles'
| 'uploading'
| 'pausedUP'
| 'stoppedUP'
| 'queuedUP'
| 'stalledUP'
| 'checkingUP'
| 'forcedUP'
| 'allocating'
| 'downloading'
| 'metaDL'
| 'forcedMetaDL'
| 'pausedDL'
| 'stoppedDL'
| 'queuedDL'
| 'stalledDL'
| 'checkingDL'
Expand Down
3 changes: 3 additions & 0 deletions server/services/qBittorrent/util/torrentPropertiesUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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;
Expand Down

0 comments on commit 1c1ddee

Please sign in to comment.