Cartoon18: fix page selector (#5164)

This commit is contained in:
Vetle Ledaal 2024-09-23 15:19:22 +02:00 committed by GitHub
parent a72df901eb
commit 86e39ec938
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Cartoon18'
extClass = '.Cartoon18'
extVersionCode = 1
extVersionCode = 2
isNsfw = true
}

View File

@ -114,7 +114,7 @@ class Cartoon18 : HttpSource(), ConfigurableSource {
override fun pageListParse(response: Response): List<Page> {
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 ->
Page(index, imageUrl = image.attr("src"))
}