Kiutaku: encode search (#8729)

This commit is contained in:
Vetle Ledaal 2025-05-04 15:31:48 +02:00 committed by Draff
parent 9f6f2d8b12
commit d3d573fe77
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Kiutaku'
extClass = '.Kiutaku'
extVersionCode = 2
extVersionCode = 3
isNsfw = true
}

View File

@ -78,7 +78,12 @@ class Kiutaku : ParsedHttpSource() {
}
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
return GET("$baseUrl/?search=$query&start=${getPage(page)}", headers)
val url = baseUrl.toHttpUrl().newBuilder()
.addQueryParameter("search", query)
.addQueryParameter("start", getPage(page).toString())
.build()
return GET(url, headers)
}
override fun searchMangaSelector() = popularMangaSelector()