MangaDenizi: fix search encoding (#8975)

This commit is contained in:
Vetle Ledaal 2025-05-30 03:39:37 +02:00 committed by Draff
parent abe89d454c
commit 736d628518
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'MangaDenizi'
extClass = '.MangaDenizi'
extVersionCode = 5
extVersionCode = 6
isNsfw = false
}

View File

@ -11,6 +11,8 @@ import eu.kanade.tachiyomi.util.asJsoup
import kotlinx.serialization.Serializable
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.json.Json
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.Request
import okhttp3.Response
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
@ -66,7 +68,12 @@ class MangaDenizi : ParsedHttpSource() {
override fun searchMangaSelector() = "Unused"
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) = GET("$baseUrl/search?query=$query", headers)
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val url = "$baseUrl/search".toHttpUrl().newBuilder()
.addQueryParameter("query", query)
.build()
return GET(url, headers)
}
override fun searchMangaNextPageSelector() = "Unused"
override fun searchMangaFromElement(element: Element) = throw UnsupportedOperationException()