18Kami: Fix Pages (#4292)
* Fix Pages * Update extVersionCode * Typo Fix
This commit is contained in:
parent
8cb6533dcd
commit
ef7ff81f1b
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = '18Kami'
|
||||
extClass = '.Kami18'
|
||||
extVersionCode = 1
|
||||
extVersionCode = 2
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue