Cartoon18: fix page selector ()

This commit is contained in:
Vetle Ledaal 2024-09-23 15:19:22 +02:00 committed by Draff
parent e34377d2ad
commit 1a6c21f9f3
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions
src/zh/cartoon18
build.gradle
src/eu/kanade/tachiyomi/extension/zh/cartoon18

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

@ -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"))
}