18Kami: Fix Pages (#4292)

* Fix Pages

* Update extVersionCode

* Typo Fix
This commit is contained in:
KenjieDec 2024-07-28 12:47:54 +07:00 committed by Draff
parent 8cb6533dcd
commit ef7ff81f1b
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -153,7 +153,7 @@ class Kami18() : HttpSource() {
val document = response.asJsoup()
val contents = document.select("[id*=pageselect] > option")
val id = response.request.url.toString().filter { it.isDigit() }
val id = response.request.url.toString().substringAfter("photo/").filter { it.isDigit() }
return contents.mapIndexed { idx, image ->
val filename = image.attr("data-page")
Page(idx, imageUrl = "$baseImageUrl/$id/$filename")