diff --git a/Website/apiConnector.js b/Website/apiConnector.js index 33a3886..aa5f40a 100644 --- a/Website/apiConnector.js +++ b/Website/apiConnector.js @@ -240,10 +240,21 @@ Date.prototype.timeNow = function () { function UpdateAprilFoolsMode() { checkBox = document.getElementById("aprilFoolsMode"); var uri = `${apiUri}/Settings/AprilFoolsMode?enabled=${checkBox.checked}`; - console.log(uri); PostData(uri); } +function ResetRateLimits() { + var uri = `${apiUri}/Settings/customRequestLimit/Reset`; + PostData(uri); + OpenSettings(); +} + +function ResetUserAgent() { + var uri = `${apiUri}/Settings/userAgent/Reset`; + PostData(uri); + OpenSettings(); +} + //Komga function UpdateKomga(komgaUrl, komgaAuth){ var uri = `${apiUri}/LibraryConnectors/Update?libraryConnector=Komga&komgaUrl=${komgaUrl}&komgaAuth=${komgaAuth}`; diff --git a/Website/index.html b/Website/index.html index b7f9c6c..7142dba 100644 --- a/Website/index.html +++ b/Website/index.html @@ -104,7 +104,7 @@ - Refresh Library Metadata + Reset User Agent Download Logs @@ -114,13 +114,19 @@ + + Reset All Rate Limits +
- Appearance - + + Refresh Library Metadata +