mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixed LayarKaca
This commit is contained in:
parent
0a97217ce8
commit
f61d4b217d
1 changed files with 7 additions and 2 deletions
|
@ -10,7 +10,7 @@ import org.jsoup.nodes.Element
|
|||
import java.util.*
|
||||
|
||||
class LayarKacaProvider : MainAPI() {
|
||||
override var mainUrl = "https://149.56.24.226"
|
||||
override var mainUrl = "https://lk21.xn--6frz82g"
|
||||
override var name = "LayarKaca"
|
||||
override val hasMainPage = true
|
||||
override var lang = "id"
|
||||
|
@ -214,7 +214,12 @@ class LayarKacaProvider : MainAPI() {
|
|||
}
|
||||
|
||||
sources.apmap {
|
||||
loadExtractor(it, data, callback)
|
||||
val link = if(it.startsWith("https://layarkacaxxi.icu")) {
|
||||
it.substringBeforeLast("/")
|
||||
} else {
|
||||
it
|
||||
}
|
||||
loadExtractor(link, data, callback)
|
||||
}
|
||||
|
||||
return true
|
Loading…
Reference in a new issue