Oh Joy Sex Toy: encode search (#8662)

This commit is contained in:
Vetle Ledaal 2025-04-28 15:17:56 +02:00 committed by Draff
parent 956b7f05e0
commit c4ff02c6c4
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = "Oh Joy Sex Toy"
extClass = ".OhJoySexToy"
extVersionCode = 1
extVersionCode = 2
isNsfw = true
}

View File

@ -9,6 +9,7 @@ import eu.kanade.tachiyomi.source.model.UpdateStrategy
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import eu.kanade.tachiyomi.util.asJsoup
import keiyoushi.utils.tryParse
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.Request
import okhttp3.Response
import org.jsoup.nodes.Document
@ -57,7 +58,12 @@ class OhJoySexToy : ParsedHttpSource() {
// Search
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = GET("$baseUrl/?s=$query", headers)
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {
val url = baseUrl.toHttpUrl().newBuilder()
.addQueryParameter("s", query)
.build()
return GET(url, headers)
}
override fun searchMangaSelector(): String = "h2.post-title"