浏览代码

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

arkon 4 年之前
父节点
当前提交
df7e0d2f2f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeListApi.kt

+ 1 - 0
app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeListApi.kt

@@ -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()