shit loklok

This commit is contained in:
hexated 2022-10-02 07:19:47 +07:00
parent 07dc70c7b5
commit 704b4da9d2
1 changed files with 2 additions and 1 deletions

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