fix: duplicate download

This commit is contained in:
rebelonion 2024-04-21 08:06:23 -05:00
parent 4ffe9d7505
commit 870cb751a4
4 changed files with 9 additions and 4 deletions

View file

@ -44,7 +44,8 @@ class OfflineMangaParser : MangaParser() {
}
}
chapters.addAll(loadChaptersCompat(mangaLink, extra, sManga))
chapters.distinctBy { it.number }.sortedBy { MediaNameAdapter.findChapterNumber(it.number) }
return chapters.distinctBy { it.number }
.sortedBy { MediaNameAdapter.findChapterNumber(it.number) }
}
return emptyList()
}