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>
This commit is contained in:
Ahmad Ghoni Arrozaq 2022-10-06 03:46:21 +07:00 committed by GitHub
parent 4eb7d280a2
commit f8c104f2ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -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()

View File

@ -5,7 +5,7 @@ ext {
extName = 'Komiku'
pkgNameSuffix = 'id.komiku'
extClass = '.Komiku'
extVersionCode = 14
extVersionCode = 15
}
apply from: "$rootDir/common.gradle"