Manga fast (#3836)
* MangaFast: Fix pageListParse for lazily loaded images * Remove unnecessary stuff * Update build.gradle
This commit is contained in:
parent
b93641e90e
commit
d06f46db7f
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'MangaFast'
|
||||
pkgNameSuffix = 'en.mangafast'
|
||||
extClass = '.MangaFast'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,13 @@ class MangaFast: ParsedHttpSource() {
|
|||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
return document.select("div.chp2 > img").mapIndexed { i, element ->
|
||||
Page(i, "", element.attr("abs:src"))
|
||||
var url = element.attr("abs:data-src")
|
||||
|
||||
if (url.isEmpty()) {
|
||||
url = element.attr("abs:src")
|
||||
}
|
||||
|
||||
Page(i, "", url)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue