ManhwaWeb: Filter out invalid pages (#8457)
* filter * simplify condition Co-authored-by: Vetle Ledaal <vetle.ledaal@gmail.com> --------- Co-authored-by: Vetle Ledaal <vetle.ledaal@gmail.com>
This commit is contained in:
parent
2dee930bbf
commit
6c87c1634b
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'ManhwaWeb'
|
||||
extClass = '.ManhwaWeb'
|
||||
extVersionCode = 6
|
||||
extVersionCode = 7
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -155,7 +155,7 @@ class ManhwaWeb : HttpSource() {
|
||||
|
||||
override fun pageListParse(response: Response): List<Page> {
|
||||
val result = json.decodeFromString<PayloadPageDto>(response.body.string())
|
||||
return result.data.images.filter { it.isNotBlank() }
|
||||
return result.data.images.filter { it.startsWith("http") }
|
||||
.mapIndexed { i, img -> Page(i, imageUrl = img) }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user