Align Sabnzbd status reporting with updated TorrentStatus values.

This commit is contained in:
omgbeez 2026-02-13 17:07:51 -05:00 committed by Clifford Roche
parent f25cef711b
commit 33d8c2d825
2 changed files with 7 additions and 6 deletions

View file

@ -60,12 +60,13 @@ public class Sabnzbd(ILogger<Sabnzbd> 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 ?? "*",

View file

@ -169,7 +169,7 @@ public class TorrentsController(ILogger<TorrentsController> logger, Torrents tor
[Route("DiskSpaceStatus")]
public ActionResult<DiskSpaceStatus?> GetDiskSpaceStatus()
{
var status = Service.BackgroundServices.DiskSpaceMonitor.GetCurrentStatus();
var status = DiskSpaceMonitor.GetCurrentStatus();
return Ok(status);
}