From 33d8c2d825718948899383b77300a4ad92df6655 Mon Sep 17 00:00:00 2001 From: omgbeez <251408589+omgbeez@users.noreply.github.com> Date: Fri, 13 Feb 2026 17:07:51 -0500 Subject: [PATCH] Align `Sabnzbd` status reporting with updated `TorrentStatus` values. --- server/RdtClient.Service/Services/Sabnzbd.cs | 11 ++++++----- .../RdtClient.Web/Controllers/TorrentsController.cs | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/server/RdtClient.Service/Services/Sabnzbd.cs b/server/RdtClient.Service/Services/Sabnzbd.cs index ca7df94..2498741 100644 --- a/server/RdtClient.Service/Services/Sabnzbd.cs +++ b/server/RdtClient.Service/Services/Sabnzbd.cs @@ -60,12 +60,13 @@ public class Sabnzbd(ILogger logger, Torrents torrents, AppSettings app Status = t.RdStatus switch { - TorrentStatus.Processing => "Propagating", - TorrentStatus.Finished => "Completed", - TorrentStatus.Downloading => "Downloading", - TorrentStatus.WaitingForFileSelection => "Propagating", - TorrentStatus.Error => "Failed", TorrentStatus.Queued => "Queued", + TorrentStatus.Processing => "Downloading", + TorrentStatus.WaitingForFileSelection => "Downloading", + TorrentStatus.Downloading => "Downloading", + TorrentStatus.Uploading => "Downloading", + TorrentStatus.Finished => "Completed", + TorrentStatus.Error => "Failed", _ => "Downloading" }, Category = t.Category ?? "*", diff --git a/server/RdtClient.Web/Controllers/TorrentsController.cs b/server/RdtClient.Web/Controllers/TorrentsController.cs index 2454102..37a815a 100644 --- a/server/RdtClient.Web/Controllers/TorrentsController.cs +++ b/server/RdtClient.Web/Controllers/TorrentsController.cs @@ -169,7 +169,7 @@ public class TorrentsController(ILogger logger, Torrents tor [Route("DiskSpaceStatus")] public ActionResult GetDiskSpaceStatus() { - var status = Service.BackgroundServices.DiskSpaceMonitor.GetCurrentStatus(); + var status = DiskSpaceMonitor.GetCurrentStatus(); return Ok(status); }