aboutsummaryrefslogtreecommitdiff
path: root/src/lib/List
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-12-10 02:41:17 -0800
committerFuwn <[email protected]>2023-12-10 02:41:17 -0800
commit24efc4f1ec7c8f537653cc7da16fcafe480d94d0 (patch)
treeb88e99c9c4edb437c6241777892f5bc5772063e0 /src/lib/List
parentfeat(mangadex): add safe rate limits (diff)
downloaddue.moe-24efc4f1ec7c8f537653cc7da16fcafe480d94d0.tar.xz
due.moe-24efc4f1ec7c8f537653cc7da16fcafe480d94d0.zip
feat(manga): lighter rate-limits
Diffstat (limited to 'src/lib/List')
-rw-r--r--src/lib/List/Manga/MangaListTemplate.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/List/Manga/MangaListTemplate.svelte b/src/lib/List/Manga/MangaListTemplate.svelte
index c6ea8b7d..54009e50 100644
--- a/src/lib/List/Manga/MangaListTemplate.svelte
+++ b/src/lib/List/Manga/MangaListTemplate.svelte
@@ -50,7 +50,7 @@
if (
(currentDate.getTime() - $lastPruneTimes.chapters) / 1000 / 60 >
- $settings.cacheMangaMinutes
+ Math.max($settings.cacheMangaMinutes, 5)
) {
const unresolved = await chapterDatabase.chapters.where('chapters').equals(-1).toArray();
const ids = unresolved.map((m) => m.id);