mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-25 02:18:24 +01:00
filter mangaupdates search (#8813)
This commit is contained in:
parent
db3c98fe72
commit
12c672667c
@ -16,6 +16,7 @@ import eu.kanade.tachiyomi.network.parseAs
|
|||||||
import eu.kanade.tachiyomi.util.system.logcat
|
import eu.kanade.tachiyomi.util.system.logcat
|
||||||
import kotlinx.serialization.json.Json
|
import kotlinx.serialization.json.Json
|
||||||
import kotlinx.serialization.json.JsonObject
|
import kotlinx.serialization.json.JsonObject
|
||||||
|
import kotlinx.serialization.json.add
|
||||||
import kotlinx.serialization.json.addJsonObject
|
import kotlinx.serialization.json.addJsonObject
|
||||||
import kotlinx.serialization.json.buildJsonArray
|
import kotlinx.serialization.json.buildJsonArray
|
||||||
import kotlinx.serialization.json.buildJsonObject
|
import kotlinx.serialization.json.buildJsonObject
|
||||||
@ -147,6 +148,13 @@ class MangaUpdatesApi(
|
|||||||
suspend fun search(query: String): List<Record> {
|
suspend fun search(query: String): List<Record> {
|
||||||
val body = buildJsonObject {
|
val body = buildJsonObject {
|
||||||
put("search", query)
|
put("search", query)
|
||||||
|
put(
|
||||||
|
"filter_types",
|
||||||
|
buildJsonArray {
|
||||||
|
add("drama cd")
|
||||||
|
add("novel")
|
||||||
|
},
|
||||||
|
)
|
||||||
}
|
}
|
||||||
return client.newCall(
|
return client.newCall(
|
||||||
POST(
|
POST(
|
||||||
|
Loading…
Reference in New Issue
Block a user