fix ComicCastle page list (#5048)

This commit is contained in:
Riztard Lanthorn 2020-12-07 20:20:21 +07:00 committed by GitHub
parent 2cf5386202
commit bc1ff43fd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -125,14 +125,14 @@ class Comicastle : ParsedHttpSource() {
override fun chapterFromElement(element: Element): SChapter {
return SChapter.create().apply {
name = element.text()
setUrlWithoutDomain(element.attr("href"))
setUrlWithoutDomain(element.attr("href").replace("pbp", "swiper"))
}
}
// Pages
override fun pageListParse(document: Document): List<Page> {
return document.select("div.img-list img").mapIndexed { i, img ->
return document.select(".swiper-wrapper .swiper-slide img").mapIndexed { i, img ->
Page(i, "", img.attr("abs:src"))
}
}