From 4a987d5d1362a7f7e2411d81eaabb750de5e0b2f Mon Sep 17 00:00:00 2001 From: hexated Date: Sun, 2 Oct 2022 07:19:47 +0700 Subject: [PATCH] shit loklok --- Loklok/src/main/kotlin/com/hexated/Loklok.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Loklok/src/main/kotlin/com/hexated/Loklok.kt b/Loklok/src/main/kotlin/com/hexated/Loklok.kt index b6b34d7b..95932f10 100644 --- a/Loklok/src/main/kotlin/com/hexated/Loklok.kt +++ b/Loklok/src/main/kotlin/com/hexated/Loklok.kt @@ -84,7 +84,8 @@ class Loklok : MainAPI() { val id = data?.last() val type = data?.get(2)?.toInt() val image = Regex("coverVerticalUrl:\"(\\S+?)\",").findAll(script.toString()) - .map { it.groupValues[1] }.toList()[num].replace("\\u002F", "/") + .map { it.groupValues[1] }.toList().getOrNull(num)?.replace("\\u002F", "/") + newMovieSearchResponse( "$name",