Manhwas.net: Not show empty images (#17172)

Filter invalid imgs
This commit is contained in:
Rolando Lecca 2023-07-20 21:05:18 -05:00 committed by GitHub
parent a973b0aa59
commit 832ace3eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Manhwas.net'
pkgNameSuffix = 'es.manhwasnet'
extClass = '.ManhwasNet'
extVersionCode = 7
extVersionCode = 8
isNsfw = true
}

View File

@ -147,7 +147,7 @@ class ManhwasNet : ParsedHttpSource() {
}
override fun pageListParse(document: Document): List<Page> {
return document.select("#chapter_imgs img").mapIndexed { i, img ->
return document.select("#chapter_imgs img[src][src!=\"\"]").mapIndexed { i, img ->
val url = img.attr("abs:src")
Page(i, imageUrl = url)
}