MangaKawaii: Fix #6360 (#6467)

This commit is contained in:
Julien Papasian 2021-04-08 12:26:50 +01:00 committed by GitHub
parent 371716b5b8
commit 0741c20a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Mangakawaii'
pkgNameSuffix = 'fr.mangakawaii'
extClass = '.MangaKawaii'
extVersionCode = 27
extVersionCode = 28
libVersion = '1.2'
}

View File

@ -137,8 +137,12 @@ class MangaKawaii : ParsedHttpSource() {
val elements = document.select(selectorDecoded)
val pages = mutableListOf<Page>()
var j = 0
for (i in 0 until elements.count()) {
pages.add(Page(i, document.location(), elements[i].attr("src").trim()))
if (elements[i].attr("src").trim() != "") {
pages.add(Page(j, document.location(), elements[i].attr("src").trim()))
++j
}
}
return pages
}