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:
bapeey 2025-04-14 09:43:00 -05:00 committed by Draff
parent 2dee930bbf
commit 6c87c1634b
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'ManhwaWeb'
extClass = '.ManhwaWeb'
extVersionCode = 6
extVersionCode = 7
isNsfw = true
}

View File

@ -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) }
}