diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/mangadex.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/mangadex.ts b/src/lib/mangadex.ts index d2eb8c3b..b17a2ffa 100644 --- a/src/lib/mangadex.ts +++ b/src/lib/mangadex.ts @@ -57,6 +57,14 @@ export const chapterCount = async ( let lastChapter = lastChapterData['data'][0]['attributes']['chapter']; + if ((manga.mediaListEntry || { progress: 0 }).progress >= lastChapter) { + const anilistData = await recentMediaActivities(identity, manga); + + if (anilistData !== null && anilistData > lastChapter) { + lastChapter = anilistData; + } + } + if (lastChapter == 0) { lastChapter = null; } |