Fix MangaJar page list parsing (#7400)
* fix[mangajar]: fix page list parsing * style[mangajar]: remove braces from if-expression, use hasAttr * fix[mangajar]: fix if-else
This commit is contained in:
parent
cf9ed00c61
commit
1ecd11ced4
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'MangaJar'
|
||||
pkgNameSuffix = 'en.mangajar'
|
||||
extClass = '.MangaJar'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ class MangaJar : ParsedHttpSource() {
|
|||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
return document.select("img[data-page]").mapIndexed { i, element ->
|
||||
Page(i, "", element.attr("data-alternative"))
|
||||
Page(i, "", if (element.hasAttr("data-src")) element.attr("abs:data-src") else element.attr("abs:src"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue