Skip to content

Commit

Permalink
fix: added new torrent state names from qBit5 (#20)
Browse files Browse the repository at this point in the history
Signed-off-by: Antonín Říha <[email protected]>
  • Loading branch information
anriha authored Oct 8, 2024
1 parent b1ffa0d commit c80e6d6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/model/torrent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ pub enum State {
/// Torrent is being seeded and data is being transferred
#[serde(rename = "uploading")]
Uploading,
/// Torrent is paused and has finished downloading
#[serde(rename = "pausedUP")]
/// Torrent is paused and has finished downloading,
/// stoppedUP is new name in qBit5+
#[serde(rename = "pausedUP", alias = "stoppedUP")]
PausedUP,
/// Queuing is enabled and torrent is queued for upload
#[serde(rename = "queuedUP")]
Expand All @@ -158,8 +159,9 @@ pub enum State {
/// Torrent has just started downloading and is fetching metadata
#[serde(rename = "metaDL")]
MetaDL,
/// Torrent is paused and has NOT finished downloading
#[serde(rename = "pausedDL")]
/// Torrent is paused and has NOT finished downloading,
/// stoppedDL is new name in qBit5+
#[serde(rename = "pausedDL", alias = "stoppedDL")]
PausedDL,
/// Queuing is enabled and torrent is queued for download
#[serde(rename = "queuedDL")]
Expand Down

0 comments on commit c80e6d6

Please sign in to comment.