fix ComicCastle page list (#5048)
This commit is contained in:
parent
2cf5386202
commit
bc1ff43fd0
@ -5,7 +5,7 @@ ext {
|
||||
extName = 'Comicastle'
|
||||
pkgNameSuffix = 'en.comicastle'
|
||||
extClass = '.Comicastle'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
@ -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"))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user