From 5543a3cd7c1a3ac8cd5074ab178b197efe8c7e19 Mon Sep 17 00:00:00 2001 From: gamebeaker Date: Fri, 10 Apr 2026 00:02:57 +0200 Subject: [PATCH] slow down Library update all --- plugin/js/Library.js | 5 +++++ plugin/js/main.js | 1 + 2 files changed, 6 insertions(+) diff --git a/plugin/js/Library.js b/plugin/js/Library.js index e484ceea0..f0be723b7 100644 --- a/plugin/js/Library.js +++ b/plugin/js/Library.js @@ -865,6 +865,11 @@ class Library { // eslint-disable-line no-unused-vars obj.dataset.libsuppressErrorLog = true; document.getElementById("startingUrlInput").value = await Library.LibGetFromStorage("LibStoryURL" + LibArray[i]); await main.onLoadAndAnalyseButtonClick.call(obj); + try { + await main.getCurrentParser().rateLimitDelay(); + } catch { + // + } try { await main.fetchContentAndPackEpub.call(obj); } catch { diff --git a/plugin/js/main.js b/plugin/js/main.js index 5f4df2485..283a284ab 100644 --- a/plugin/js/main.js +++ b/plugin/js/main.js @@ -637,6 +637,7 @@ var main = (function() { onLoadAndAnalyseButtonClick : onLoadAndAnalyseButtonClick, fetchContentAndPackEpub: fetchContentAndPackEpub, resetUI: resetUI, + getCurrentParser: () => parser, getUserPreferences: () => userPreferences, }; })();