mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
added Nekopoi and fix some providers
This commit is contained in:
parent
4127d8f2c8
commit
4a1597dc2f
10 changed files with 331 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 3
|
||||
version = 4
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package com.hexated
|
||||
|
||||
import com.lagradost.cloudstream3.*
|
||||
import com.lagradost.cloudstream3.extractors.Filesim
|
||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||
import org.jsoup.nodes.Element
|
||||
|
@ -113,7 +114,7 @@ class DramaSerial : MainAPI() {
|
|||
mLink.attr("onclick").substringAfter("frame('").substringBefore("')").let { iLink ->
|
||||
val uLink = app.get(iLink, referer = iframe).document.select("script").find { it.data().contains("(document).ready") }?.data()?.substringAfter("replace(\"")?.substringBefore("\");") ?: return@apmap null
|
||||
val link = app.get(uLink, referer = iLink).document.selectFirst("iframe")?.attr("src") ?: return@apmap null
|
||||
loadExtractor(fixUrl(link), "$mainUrl/", subtitleCallback, callback)
|
||||
loadExtractor(fixUrl(link), "https://juraganfilm.info/", subtitleCallback, callback)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -122,3 +123,8 @@ class DramaSerial : MainAPI() {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
class Bk21 : Filesim() {
|
||||
override val name = "Bk21"
|
||||
override var mainUrl = "https://bk21.net"
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@ class DramaSerialPlugin: Plugin() {
|
|||
override fun load(context: Context) {
|
||||
// All providers should be added in this manner. Please don't edit the providers list directly.
|
||||
registerMainAPI(DramaSerial())
|
||||
registerExtractorAPI(Lkctwoone())
|
||||
registerExtractorAPI(Bk21())
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
package com.hexated
|
||||
|
||||
import com.lagradost.cloudstream3.extractors.XStreamCdn
|
||||
|
||||
class Lkctwoone: XStreamCdn() {
|
||||
override val name: String = "LKC21"
|
||||
override val mainUrl: String = "https://lkc21.net"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue