From 38ef5386a6cfb68195cbd665c15a83c7dcb0ba6c Mon Sep 17 00:00:00 2001 From: KenjieDec <65448230+KenjieDec@users.noreply.github.com> Date: Sat, 27 Jul 2024 21:04:56 +0700 Subject: [PATCH] Koharu: Fix Pages Not Loading, Removed Faulty Filters (#4280) Fix Pages Not Loading, Removed Faulty Filters --- src/en/koharu/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/en/koharu/Koharu.kt | 4 ++-- .../eu/kanade/tachiyomi/extension/en/koharu/KoharuFilters.kt | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/en/koharu/build.gradle b/src/en/koharu/build.gradle index 1397ba253..d74bdbbfd 100644 --- a/src/en/koharu/build.gradle +++ b/src/en/koharu/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Koharu' extClass = '.Koharu' - extVersionCode = 4 + extVersionCode = 5 isNsfw = true } diff --git a/src/en/koharu/src/eu/kanade/tachiyomi/extension/en/koharu/Koharu.kt b/src/en/koharu/src/eu/kanade/tachiyomi/extension/en/koharu/Koharu.kt index 89abffb26..a6bb60704 100644 --- a/src/en/koharu/src/eu/kanade/tachiyomi/extension/en/koharu/Koharu.kt +++ b/src/en/koharu/src/eu/kanade/tachiyomi/extension/en/koharu/Koharu.kt @@ -82,10 +82,10 @@ class Koharu : HttpSource(), ConfigurableSource { data.`1280` -> "1280" data.`980` -> "980" data.`780` -> "780" - else -> "1600" + else -> "0" } - val imagesResponse = client.newCall(GET("$apiBooksUrl/data/${entry.id}/${entry.public_key}/${dataKey.id}/${dataKey.public_key}?v=${entry.updated_at}&w=$realQuality", headers)).execute() + val imagesResponse = client.newCall(GET("$apiBooksUrl/data/${entry.id}/${entry.public_key}/${dataKey.id}/${dataKey.public_key}?v=${entry.updated_at ?: entry.created_at}&w=$realQuality", headers)).execute() val images = imagesResponse.parseAs() return images } diff --git a/src/en/koharu/src/eu/kanade/tachiyomi/extension/en/koharu/KoharuFilters.kt b/src/en/koharu/src/eu/kanade/tachiyomi/extension/en/koharu/KoharuFilters.kt index e8c987471..b871bc400 100644 --- a/src/en/koharu/src/eu/kanade/tachiyomi/extension/en/koharu/KoharuFilters.kt +++ b/src/en/koharu/src/eu/kanade/tachiyomi/extension/en/koharu/KoharuFilters.kt @@ -43,12 +43,9 @@ internal class CategoryFilter(name: String) : internal open class CheckBoxFilter(name: String, val value: Int, state: Boolean) : Filter.CheckBox(name, state) private val getSortsList: List> = listOf( - Pair("ID", "1"), + Pair("Recently Posted", "4"), Pair("Title", "2"), Pair("Pages", "3"), - Pair("Recently Posted", ""), - Pair("Recently Updated", "5"), - Pair("Original Posted Date", "6"), Pair("Most Viewed", "8"), Pair("Most Favorited", "9"), )