Per-tracker seeding rules and torrent reaper (#88)
ci / web (push) Successful in 43s
e2e / e2e (push) Successful in 54s
ci / rust (push) Failing after 2m0s

This commit was merged in pull request #88.
This commit is contained in:
2026-08-23 00:03:30 +01:00
parent 22024d4be2
commit 0585811a0c
6 changed files with 319 additions and 21 deletions
+7 -1
View File
@@ -68,6 +68,9 @@ pub struct Torrent {
pub progress: f64,
pub download_dir: PathBuf,
pub labels: Vec<String>,
/// Transmission has stopped this torrent because its configured seeding
/// ratio or idle limit was reached.
pub is_finished: bool,
}
/// One file inside a torrent, as Transmission reports it.
@@ -225,7 +228,7 @@ impl TransmissionClient {
json!({
"fields": [
"id", "name", "hashString", "status", "percentDone",
"downloadDir", "labels"
"downloadDir", "labels", "isFinished"
]
}),
)
@@ -383,6 +386,8 @@ struct RpcTorrent {
download_dir: PathBuf,
#[serde(default)]
labels: Vec<String>,
#[serde(rename = "isFinished", default)]
is_finished: bool,
}
impl From<RpcTorrent> for Torrent {
@@ -406,6 +411,7 @@ impl From<RpcTorrent> for Torrent {
progress: value.progress,
download_dir: value.download_dir,
labels: value.labels,
is_finished: value.is_finished,
}
}
}