Fix duplicate pages in chapters (#1520). (#1524)

Fix duplicate pages in chapters in Golden Mangas
This commit is contained in:
Alessandro Jean 2019-09-17 13:58:42 -03:00 committed by arkon
parent 13ee08b0ae
commit 57fb6d1b28
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Golden Mangás' appName = 'Tachiyomi: Golden Mangás'
pkgNameSuffix = 'pt.goldenmangas' pkgNameSuffix = 'pt.goldenmangas'
extClass = '.GoldenMangas' extClass = '.GoldenMangas'
extVersionCode = 1 extVersionCode = 2
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -120,7 +120,8 @@ class GoldenMangas : ParsedHttpSource() {
} }
override fun pageListParse(document: Document): List<Page> { override fun pageListParse(document: Document): List<Page> {
val pages = document.select("div.col-sm-12[id^='capitulos_images'] img[pag]") val chapImages = document.select("div.col-sm-12[id^='capitulos_images']").first()
val pages = chapImages.select("img[pag]")
return pages return pages
.mapIndexed { i, element -> Page(i, "", baseUrl + element.attr("src"))} .mapIndexed { i, element -> Page(i, "", baseUrl + element.attr("src"))}