From 89c5f4b820214d5f2ea296a1d0b2cb2e76af64c6 Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 31 Aug 2023 16:40:08 +0200 Subject: [PATCH] Added API-call GET Jobs/MonitorJobs --- Tranga/Server.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tranga/Server.cs b/Tranga/Server.cs index df4f434..12933b2 100644 --- a/Tranga/Server.cs +++ b/Tranga/Server.cs @@ -165,6 +165,9 @@ public class Server : GlobalBase case "Jobs/Waiting": SendResponse(HttpStatusCode.OK, response, _parent._jobBoss.jobs.Where(jjob => jjob.progressToken.state is ProgressToken.State.Standby)); break; + case "Jobs/MonitorJobs": + SendResponse(HttpStatusCode.OK, response, _parent._jobBoss.jobs.Where(jjob => jjob is DownloadNewChapters)); + break; case "Settings": SendResponse(HttpStatusCode.OK, response, settings); break;