diff --git a/src/en/kami18/build.gradle b/src/en/kami18/build.gradle index 5cd373978..c3480f987 100644 --- a/src/en/kami18/build.gradle +++ b/src/en/kami18/build.gradle @@ -1,7 +1,7 @@ ext { extName = '18Kami' extClass = '.Kami18' - extVersionCode = 1 + extVersionCode = 2 isNsfw = true } diff --git a/src/en/kami18/src/eu/kanade/tachiyomi/extension/en/kami18/Kami18.kt b/src/en/kami18/src/eu/kanade/tachiyomi/extension/en/kami18/Kami18.kt index e61d50ea3..fd3db2d9a 100644 --- a/src/en/kami18/src/eu/kanade/tachiyomi/extension/en/kami18/Kami18.kt +++ b/src/en/kami18/src/eu/kanade/tachiyomi/extension/en/kami18/Kami18.kt @@ -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")