fixed LayarKaca

This commit is contained in:
hexated 2022-07-21 15:15:34 +07:00 committed by Blatzar
parent 0a97217ce8
commit f61d4b217d

View file

@ -10,7 +10,7 @@ import org.jsoup.nodes.Element
import java.util.* import java.util.*
class LayarKacaProvider : MainAPI() { class LayarKacaProvider : MainAPI() {
override var mainUrl = "https://149.56.24.226" override var mainUrl = "https://lk21.xn--6frz82g"
override var name = "LayarKaca" override var name = "LayarKaca"
override val hasMainPage = true override val hasMainPage = true
override var lang = "id" override var lang = "id"
@ -214,7 +214,12 @@ class LayarKacaProvider : MainAPI() {
} }
sources.apmap { sources.apmap {
loadExtractor(it, data, callback) val link = if(it.startsWith("https://layarkacaxxi.icu")) {
it.substringBeforeLast("/")
} else {
it
}
loadExtractor(link, data, callback)
} }
return true return true