From f8c104f2ae50c8299540dfb016a20755e8364f61 Mon Sep 17 00:00:00 2001 From: Ahmad Ghoni Arrozaq <93740880+AhmadGhoni@users.noreply.github.com> Date: Thu, 6 Oct 2022 03:46:21 +0700 Subject: [PATCH] Komikindo.ID: fix HTTP error 404 (#13721) * KomikIndoID: fix error 404 * Update src/id/komiku/build.gradle Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> * Update src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com> --- .../tachiyomi/extension/id/komikindoid/KomikIndoID.kt | 8 +++----- src/id/komiku/build.gradle | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt b/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt index 69583d2b5..2ddc265ef 100644 --- a/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt +++ b/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt @@ -54,10 +54,8 @@ class KomikIndoID : ParsedHttpSource() { } override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { - val builtUrl = if (page == 1) "$baseUrl/daftar-komik/" else "$baseUrl/daftar-komik/page/$page/?order=" - val url = builtUrl.toHttpUrlOrNull()!!.newBuilder() - url.addQueryParameter("title", query) - url.addQueryParameter("page", page.toString()) + val url = "$baseUrl/daftar-manga/page/$page/".toHttpUrlOrNull()!!.newBuilder() + .addQueryParameter("title", query) filters.forEach { filter -> when (filter) { is AuthorFilter -> { @@ -87,7 +85,7 @@ class KomikIndoID : ParsedHttpSource() { } } } - return GET(url.build().toString(), headers) + return GET(url.toString(), headers) } override fun mangaDetailsParse(document: Document): SManga { val infoElement = document.select("div.infoanime").first() diff --git a/src/id/komiku/build.gradle b/src/id/komiku/build.gradle index f8562c9bf..2c5120587 100644 --- a/src/id/komiku/build.gradle +++ b/src/id/komiku/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Komiku' pkgNameSuffix = 'id.komiku' extClass = '.Komiku' - extVersionCode = 14 + extVersionCode = 15 } apply from: "$rootDir/common.gradle"