sora: fix m4uhd

This commit is contained in:
lisa 2023-12-23 09:16:09 +07:00
parent 928db8c7ff
commit 211c58b0ef
9 changed files with 103 additions and 138 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 17
version = 18
cloudstream {

View file

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