ManhwaWeb: Filter out unreleased chapters (#8282)
filter out not released chapters
This commit is contained in:
parent
7457106c23
commit
10cea1e57d
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'ManhwaWeb'
|
||||
extClass = '.ManhwaWeb'
|
||||
extVersionCode = 5
|
||||
extVersionCode = 6
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -133,7 +133,9 @@ class ManhwaWeb : HttpSource() {
|
||||
|
||||
override fun chapterListParse(response: Response): List<SChapter> {
|
||||
val result = json.decodeFromString<PayloadChapterDto>(response.body.string())
|
||||
val chapters = result.chapters.filterNot { it.espUrl == null && it.rawUrl == null }.map { it.toSChapter() }
|
||||
val chapters = result.chapters.filterNot {
|
||||
it.createdAt == null || (it.espUrl == null && it.rawUrl == null)
|
||||
}.map { it.toSChapter() }
|
||||
|
||||
return chapters.sortedByDescending { it.chapter_number }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user