Keep future chapters on Mangadex like Billibi and Comikey

This commit is contained in:
Jobobby04
2021-11-14 18:34:22 -05:00
parent b227f2a4a5
commit 4ea72f5342
3 changed files with 17 additions and 9 deletions
@@ -165,14 +165,10 @@ class ApiMangaParser(
}
fun chapterListParse(chapterListResponse: List<ChapterDataDto>, groupMap: Map<String, String>): List<ChapterInfo> {
val now = System.currentTimeMillis()
return chapterListResponse.asSequence()
return chapterListResponse
.map {
mapChapter(it, groupMap)
}.filter {
it.dateUpload <= now
}.toList()
}
}
fun chapterParseForMangaId(chapterDto: ChapterDto): String? {