Skip to content

Commit

Permalink
Added new torrent states introduced in qBit5.0
Browse files Browse the repository at this point in the history
Signed-off-by: Antonín Říha <antonin.riha@protonmail.com>
  • Loading branch information
anriha committed Oct 6, 2024
1 parent b1ffa0d commit 0621435
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/model/torrent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ pub enum State {
/// Torrent is being seeded and data is being transferred
#[serde(rename = "uploading")]
Uploading,
/// Torrent is stopped and has finished downloading, new in qBit5.0+
/// same as older pausedUP
#[serde(rename = "stoppedUP")]
StoppedUP,
/// Torrent is paused and has finished downloading
#[serde(rename = "pausedUP")]
PausedUP,
Expand All @@ -158,6 +162,10 @@ pub enum State {
/// Torrent has just started downloading and is fetching metadata
#[serde(rename = "metaDL")]
MetaDL,
/// Torrent is stopped and has NOT finished downloading, new in qBit5.0+
/// same as older pausedDL
#[serde(rename = "stoppedDL")]
StoppedDL,
/// Torrent is paused and has NOT finished downloading
#[serde(rename = "pausedDL")]
PausedDL,
Expand Down

0 comments on commit 0621435

Please sign in to comment.