Manga fast (#3836)

* MangaFast: Fix pageListParse for lazily loaded images

* Remove unnecessary stuff

* Update build.gradle
This commit is contained in:
AbdullahM0hamed 2020-07-18 18:30:23 +01:00 committed by GitHub
parent b93641e90e
commit d06f46db7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaFast'
pkgNameSuffix = 'en.mangafast'
extClass = '.MangaFast'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
}

View File

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