Manga Ship: fix search encoding (#8976)
This commit is contained in:
parent
736d628518
commit
9d94e1e704
@ -8,6 +8,7 @@ import eu.kanade.tachiyomi.source.model.Page
|
||||
import eu.kanade.tachiyomi.source.model.SChapter
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
|
||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||
import okhttp3.OkHttpClient
|
||||
import okhttp3.Request
|
||||
import org.jsoup.nodes.Document
|
||||
@ -62,7 +63,12 @@ class MangaShip : ParsedHttpSource() {
|
||||
// Search
|
||||
|
||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
|
||||
return GET("$baseUrl/Tr/Search?kelime=$query&tur=Manga&page=$page", headers)
|
||||
val url = "$baseUrl/Tr/Search".toHttpUrl().newBuilder()
|
||||
.addQueryParameter("kelime", query)
|
||||
.addQueryParameter("tur", "Manga")
|
||||
.addQueryParameter("page", page.toString())
|
||||
.build()
|
||||
return GET(url, headers)
|
||||
}
|
||||
|
||||
override fun searchMangaSelector() = popularMangaSelector()
|
||||
|
Loading…
x
Reference in New Issue
Block a user