Filter out unpublished chapters without an external url
This commit is contained in:
parent
3ec0777d63
commit
d60ff91ae4
@ -165,7 +165,9 @@ class ApiMangaParser(
|
||||
}
|
||||
|
||||
fun chapterListParse(chapterListResponse: List<ChapterDataDto>, groupMap: Map<String, String>): List<ChapterInfo> {
|
||||
val now = System.currentTimeMillis()
|
||||
return chapterListResponse
|
||||
.filterNot { MdUtil.parseDate(it.attributes.publishAt) > now && it.attributes.externalUrl == null }
|
||||
.map {
|
||||
mapChapter(it, groupMap)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user