From 07f7d701bd540251b94e18c1f837f7cba0519508 Mon Sep 17 00:00:00 2001 From: hexated Date: Mon, 9 Jan 2023 20:59:47 +0700 Subject: [PATCH] forgor --- Loklok/src/main/kotlin/com/hexated/Loklok.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Loklok/src/main/kotlin/com/hexated/Loklok.kt b/Loklok/src/main/kotlin/com/hexated/Loklok.kt index 9ca5d73e..73850c20 100644 --- a/Loklok/src/main/kotlin/com/hexated/Loklok.kt +++ b/Loklok/src/main/kotlin/com/hexated/Loklok.kt @@ -177,7 +177,7 @@ class Loklok : MainAPI() { val animeType = if(type == TvType.Anime && data.category == 0) "movie" else "tv" val malId = if(type == TvType.Anime) { - app.get("${jikanAPI}/anime?q=${res.name}&start_date=${res.year}&type=$animeType") + app.get("${jikanAPI}/anime?q=${res.name}&start_date=${res.year}&type=$animeType&limit=1") .parsedSafe()?.data?.firstOrNull()?.mal_id } else { null