shit loklok

This commit is contained in:
hexated 2022-10-02 07:19:47 +07:00
parent db0a2fe7e2
commit 4a987d5d13

View file

@ -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",