Filter out unpublished chapters without an external url
This commit is contained in:
parent
3ec0777d63
commit
d60ff91ae4
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue