Surface "NSFW" (includes things like ecchi) results in MAL search (closes #4249)

(cherry picked from commit df7e0d2f2f23c49289b00bab5ac65d222092dbf8)
This commit is contained in:
arkon 2021-01-04 15:15:55 -05:00 committed by Jobobby04
parent bd73b1b068
commit 27496ae77b

View File

@ -63,6 +63,7 @@ class MyAnimeListApi(private val client: OkHttpClient, interceptor: MyAnimeListI
return withContext(Dispatchers.IO) {
val url = "$baseApiUrl/manga".toUri().buildUpon()
.appendQueryParameter("q", query)
.appendQueryParameter("nsfw", "true")
.build()
authClient.newCall(GET(url.toString()))
.await()