From ef7ff81f1beafae1dee15d2b5cce127db1c972d0 Mon Sep 17 00:00:00 2001 From: KenjieDec <65448230+KenjieDec@users.noreply.github.com> Date: Sun, 28 Jul 2024 12:47:54 +0700 Subject: [PATCH] 18Kami: Fix Pages (#4292) * Fix Pages * Update extVersionCode * Typo Fix --- src/en/kami18/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/en/kami18/Kami18.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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")