Align Sabnzbd status reporting with updated TorrentStatus values.
This commit is contained in:
parent
f25cef711b
commit
33d8c2d825
2 changed files with 7 additions and 6 deletions
|
|
@ -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 ?? "*",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue