mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
sora: fix m4uhd
This commit is contained in:
parent
928db8c7ff
commit
211c58b0ef
9 changed files with 103 additions and 138 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 17
|
||||
version = 18
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -9,7 +9,7 @@ import org.jsoup.nodes.Element
|
|||
|
||||
class LayarKacaProvider : MainAPI() {
|
||||
override var mainUrl = "https://tv6.lk21official.wiki"
|
||||
private var seriesUrl = "https://tv8.nontondrama.click/"
|
||||
private var seriesUrl = "https://tv8.nontondrama.click"
|
||||
override var name = "LayarKaca"
|
||||
override val hasMainPage = true
|
||||
override var lang = "id"
|
||||
|
@ -40,6 +40,7 @@ class LayarKacaProvider : MainAPI() {
|
|||
}
|
||||
|
||||
private suspend fun getProperLink(url: String): String? {
|
||||
if(url.startsWith(seriesUrl)) return url
|
||||
val res = app.get(url).document
|
||||
return if (res.select("title").text().contains("- Nontondrama", true)) {
|
||||
res.selectFirst("div#content a")?.attr("href")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue