From ad4027779f36a2cfa44ac1bb37f2cfc9b2f7cffc Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 30 Jul 2023 17:29:30 +0200 Subject: [PATCH] Remove Deprecated CreateUpdateLibraryTask --- API/RequestHandler.cs | 7 ------- Website/apiConnector.js | 5 ----- Website/interaction.js | 2 -- 3 files changed, 14 deletions(-) diff --git a/API/RequestHandler.cs b/API/RequestHandler.cs index 4572ee1..118e3f2 100644 --- a/API/RequestHandler.cs +++ b/API/RequestHandler.cs @@ -23,7 +23,6 @@ public class RequestHandler new(HttpMethod.Get, "/Tasks/Types", Array.Empty()), new(HttpMethod.Post, "/Tasks/CreateMonitorTask", new[] { "connectorName", "internalId", "reoccurrenceTime", "language?", "ignoreChaptersBelow?" }), - //DEPRECATED new(HttpMethod.Post, "/Tasks/CreateUpdateLibraryTask", new[] { "reoccurrenceTime" }), new(HttpMethod.Post, "/Tasks/CreateDownloadChaptersTask", new[] { "connectorName", "internalId", "chapters", "language?" }), new(HttpMethod.Get, "/Tasks", new[] { "taskType", "connectorName?", "publicationId?" }), @@ -168,12 +167,6 @@ public class RequestHandler pPublication1.ignoreChaptersBelow = float.Parse(minChapter,new NumberFormatInfo() { NumberDecimalSeparator = "." }); _taskManager.AddTask(new MonitorPublicationTask(connectorName1, pPublication1, TimeSpan.Parse(reoccurrenceTime1), language1 ?? "en")); break; - case "/Tasks/CreateUpdateLibraryTask": // DEPRECATED - /*variables.TryGetValue("reoccurrenceTime", out string? reoccurrenceTime2); - if (reoccurrenceTime2 is null) - return; - _taskManager.AddTask(new UpdateLibrariesTask(TimeSpan.Parse(reoccurrenceTime2)));*/ - break; case "/Tasks/CreateDownloadChaptersTask": variables.TryGetValue("connectorName", out string? connectorName2); variables.TryGetValue("internalId", out string? internalId2); diff --git a/Website/apiConnector.js b/Website/apiConnector.js index c999389..560d3a5 100644 --- a/Website/apiConnector.js +++ b/Website/apiConnector.js @@ -106,11 +106,6 @@ function CreateMonitorTask(connectorName, internalId, reoccurrence, language){ PostData(uri); } -function CreateUpdateLibraryTask(reoccurrence){ - var uri = apiUri + `/Tasks/CreateUpdateLibraryTask?reoccurrenceTime=${reoccurrence}`; - PostData(uri); -} - function CreateDownloadChaptersTask(connectorName, internalId, chapters, language){ var uri = apiUri + `/Tasks/CreateDownloadChaptersTask?connectorName=${connectorName}&internalId=${internalId}&chapters=${chapters}&language=${language}`; PostData(uri); diff --git a/Website/interaction.js b/Website/interaction.js index be6d15f..e6695db 100644 --- a/Website/interaction.js +++ b/Website/interaction.js @@ -330,12 +330,10 @@ function UpdateLibrarySettings(){ var auth = utf8_to_b64(`${settingKomgaUser.value}:${settingKomgaPass.value}`); console.log(auth); UpdateKomga(settingKomgaUrl.value, auth); - CreateUpdateLibraryTask(libraryUpdateTime.value); } if(settingKavitaUrl.value != "" && settingKavitaUser.value != "" && settingKavitaPass.value != ""){ UpdateKavita(settingKavitaUrl.value, settingKavitaUser.value, settingKavitaPass.value); - CreateUpdateLibraryTask(libraryUpdateTime.value); } if(settingGotifyUrl.value != "" && settingGotifyAppToken.value != ""){