From 4cd06bd0e0886f1f5aa4805aa0c7c985849d33f4 Mon Sep 17 00:00:00 2001 From: db-2001 Date: Thu, 2 Nov 2023 14:28:28 -0400 Subject: [PATCH] Added button to settings pop-up to refresh library metadata through POST request --- Website/apiConnector.js | 5 +++++ Website/index.html | 3 +++ 2 files changed, 8 insertions(+) diff --git a/Website/apiConnector.js b/Website/apiConnector.js index 55abef3..8e96c0a 100644 --- a/Website/apiConnector.js +++ b/Website/apiConnector.js @@ -168,6 +168,11 @@ function ChangeStyleSheet(sheet){ PostData(uri); } +function RefreshLibraryMetadata() { + var uri = `${apiUri}/Jobs/UpdateMetadata`; + PostData(uri); +} + function UpdateKomga(komgaUrl, komgaAuth){ var uri = `${apiUri}/LibraryConnectors/Update?libraryConnector=Komga&komgaUrl=${komgaUrl}&komgaAuth=${komgaAuth}`; PostData(uri); diff --git a/Website/index.html b/Website/index.html index 9cf6850..294128c 100644 --- a/Website/index.html +++ b/Website/index.html @@ -104,6 +104,9 @@
+
+ +