mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fix #351
This commit is contained in:
parent
ee1af43cb0
commit
c7ca6d2e3d
6 changed files with 6 additions and 18 deletions
|
@ -1,7 +1,7 @@
|
||||||
import org.jetbrains.kotlin.konan.properties.Properties
|
import org.jetbrains.kotlin.konan.properties.Properties
|
||||||
|
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 25
|
version = 26
|
||||||
|
|
||||||
android {
|
android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
|
|
|
@ -106,7 +106,7 @@ object NineTv {
|
||||||
) {
|
) {
|
||||||
val mainUrl = getBaseUrl(url)
|
val mainUrl = getBaseUrl(url)
|
||||||
val res = app.get(url, referer = referer)
|
val res = app.get(url, referer = referer)
|
||||||
val master = Regex("JScripts\\s*=\\s*'([^']+)").find(res.text)?.groupValues?.get(1)
|
val master = Regex("\\s*=\\s*'([^']+)").find(res.text)?.groupValues?.get(1)
|
||||||
val key = res.document.getKeys() ?: throw ErrorLoadingException("can't generate key")
|
val key = res.document.getKeys() ?: throw ErrorLoadingException("can't generate key")
|
||||||
val decrypt = AesHelper.cryptoAESHandler(master ?: return, key.toByteArray(), false)
|
val decrypt = AesHelper.cryptoAESHandler(master ?: return, key.toByteArray(), false)
|
||||||
?.replace("\\", "")
|
?.replace("\\", "")
|
||||||
|
|
|
@ -203,7 +203,7 @@ class KuramanimeProvider : MainAPI() {
|
||||||
cookies = req.cookies
|
cookies = req.cookies
|
||||||
res.select("select#changeServer option").apmap { source ->
|
res.select("select#changeServer option").apmap { source ->
|
||||||
val server = source.attr("value")
|
val server = source.attr("value")
|
||||||
val link = "$data?dfgRr1OagZvvxbzHNpyCy0FqJQ18mCnb=MlnPqDQEtapwKxSi5VkoFct2PX0zQXPg&twEvZlbZbYRWBdKKwxkOnwYF0VWoGGVg=$server"
|
val link = "$data?dfgRr1OagZvvxbzHNpyCy0FqJQ18mCnb=o9x0eEcLo6lwZAK9jjuuTCRILJTQdc2C&twEvZlbZbYRWBdKKwxkOnwYF0VWoGGVg=$server"
|
||||||
if (server.contains(Regex("(?i)kuramadrive|archive"))) {
|
if (server.contains(Regex("(?i)kuramadrive|archive"))) {
|
||||||
invokeLocalSource(link, server, data, callback)
|
invokeLocalSource(link, server, data, callback)
|
||||||
} else {
|
} else {
|
||||||
|
@ -221,14 +221,4 @@ class KuramanimeProvider : MainAPI() {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getSt(): String {
|
|
||||||
return arrayOf(
|
|
||||||
"mc7cY3F6QP41u6WXAf1LinSsjlpKpoO3",
|
|
||||||
"nLyoAr8klM7HPLsICFzN4s9lLZ3Wjk6S",
|
|
||||||
"Z20JAgnjciWqLa4SMnADIQhqx7kQZIpo",
|
|
||||||
"3OoTHpJOwLKftM3htx647pIEfQdwndDg",
|
|
||||||
"dFLaNEioDslaveEVSfRHim2mogIAriuV"
|
|
||||||
).random()
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
import org.jetbrains.kotlin.konan.properties.Properties
|
import org.jetbrains.kotlin.konan.properties.Properties
|
||||||
|
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 189
|
version = 190
|
||||||
|
|
||||||
android {
|
android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
|
|
|
@ -248,7 +248,7 @@ object NineTv {
|
||||||
) {
|
) {
|
||||||
val mainUrl = getBaseUrl(url)
|
val mainUrl = getBaseUrl(url)
|
||||||
val res = app.get(url, referer = referer)
|
val res = app.get(url, referer = referer)
|
||||||
val master = Regex("JScripts\\s*=\\s*'([^']+)").find(res.text)?.groupValues?.get(1)
|
val master = Regex("\\s*=\\s*'([^']+)").find(res.text)?.groupValues?.get(1)
|
||||||
val key = res.document.getKeys() ?: throw ErrorLoadingException("can't generate key")
|
val key = res.document.getKeys() ?: throw ErrorLoadingException("can't generate key")
|
||||||
val decrypt = AesHelper.cryptoAESHandler(master ?: return, key.toByteArray(), false)
|
val decrypt = AesHelper.cryptoAESHandler(master ?: return, key.toByteArray(), false)
|
||||||
?.replace("\\", "")
|
?.replace("\\", "")
|
||||||
|
|
|
@ -944,9 +944,7 @@ object SoraExtractor : SoraStream() {
|
||||||
val link = Regex("((https:|http:)//.*\\.mp4)").find(source.text)?.value ?: return
|
val link = Regex("((https:|http:)//.*\\.mp4)").find(source.text)?.value ?: return
|
||||||
callback.invoke(
|
callback.invoke(
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
"Ling", "Ling", link, "$lingAPI/", Qualities.Unknown.value, headers = mapOf(
|
"Ling", "Ling", "$link/index.m3u8", "$lingAPI/", Qualities.P720.value, INFER_TYPE
|
||||||
"Range" to "bytes=0-"
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue