aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-11-18 19:09:51 -0800
committerFuwn <[email protected]>2024-11-18 19:09:51 -0800
commit5097465c65f10d5fc1109263e2cc418c6854f2e0 (patch)
tree360779e3b5fedcfe9351bed7091ec12dbdcd67a9 /src
parentfix(CleanAnimeList): total chapter count calculation (diff)
downloaddue.moe-5097465c65f10d5fc1109263e2cc418c6854f2e0.tar.xz
due.moe-5097465c65f10d5fc1109263e2cc418c6854f2e0.zip
fix(CleanMangaList): total chapter count calculation
Diffstat (limited to 'src')
-rw-r--r--src/lib/Data/Static/authorised.json5
-rw-r--r--src/lib/List/Manga/CleanMangaList.svelte6
2 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/Data/Static/authorised.json b/src/lib/Data/Static/authorised.json
index 94f6762b..07c4688f 100644
--- a/src/lib/Data/Static/authorised.json
+++ b/src/lib/Data/Static/authorised.json
@@ -1 +1,4 @@
-[5678223]
+[
+ 5678223,
+ 7035177
+] \ No newline at end of file
diff --git a/src/lib/List/Manga/CleanMangaList.svelte b/src/lib/List/Manga/CleanMangaList.svelte
index cbe2bd9f..73005d73 100644
--- a/src/lib/List/Manga/CleanMangaList.svelte
+++ b/src/lib/List/Manga/CleanMangaList.svelte
@@ -31,11 +31,7 @@
let serviceStatusResponse: Promise<Response>;
let totalEpisodeDueCount = media
- .map((manga) => {
- if (manga.mediaListEntry?.status === 'COMPLETED') return 0;
-
- return (manga.mediaListEntry?.progress || 0) - 1;
- })
+ .map((manga) => (manga.episodes || 1) - (manga.mediaListEntry?.progress || 0))
.reduce((a, b) => a + b, 0);
onMount(() => {