Cartoon18: fix page selector (#5164)
This commit is contained in:
parent
e34377d2ad
commit
1a6c21f9f3
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Cartoon18'
|
extName = 'Cartoon18'
|
||||||
extClass = '.Cartoon18'
|
extClass = '.Cartoon18'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ class Cartoon18 : HttpSource(), ConfigurableSource {
|
||||||
|
|
||||||
override fun pageListParse(response: Response): List<Page> {
|
override fun pageListParse(response: Response): List<Page> {
|
||||||
val document = response.asJsoup()
|
val document = response.asJsoup()
|
||||||
val images = document.select("div#lightgallery a img")
|
val images = document.select("div#app > div > a img")
|
||||||
return images.mapIndexed { index, image ->
|
return images.mapIndexed { index, image ->
|
||||||
Page(index, imageUrl = image.attr("src"))
|
Page(index, imageUrl = image.attr("src"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue