filter mangaupdates search (#8813) (#1489)

This commit is contained in:
Henrik 2023-02-11 22:00:10 +01:00 committed by GitHub
parent 890ce5ee23
commit 51a49a8dc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,6 +145,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(