Support torrent seconds seeding

This commit is contained in:
Leopith 2022-09-19 11:01:45 +10:00 committed by Aleksandr
parent a685434b83
commit d246908d55
2 changed files with 4 additions and 0 deletions

View File

@ -275,6 +275,7 @@ pub enum TorrentGetField {
RateDownload,
RateUpload,
RecheckProgress,
SecondsSeeding,
SeedRatioLimit,
SeedRatioMode,
SizeWhenDone,
@ -319,6 +320,7 @@ impl TorrentGetField {
TorrentGetField::RateDownload => "rateDownload",
TorrentGetField::RateUpload => "rateUpload",
TorrentGetField::RecheckProgress => "recheckProgress",
TorrentGetField::SecondsSeeding => "secondsSeeding",
TorrentGetField::SeedRatioLimit => "seedRatioLimit",
TorrentGetField::SeedRatioMode => "seedRatioMode",
TorrentGetField::SizeWhenDone => "sizeWhenDone",

View File

@ -118,6 +118,8 @@ pub struct Torrent {
pub rate_upload: Option<i64>,
#[serde(rename = "recheckProgress")]
pub recheck_progress: Option<f32>,
#[serde(rename = "secondsSeeding")]
pub seconds_seeding: Option<i64>,
#[serde(rename = "seedRatioLimit")]
pub seed_ratio_limit: Option<f32>,
#[serde(rename = "sizeWhenDone")]