mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
update
This commit is contained in:
parent
b5d459ee0b
commit
408d91f5a5
2 changed files with 0 additions and 12 deletions
|
@ -2189,7 +2189,6 @@ object SoraExtractor : SoraStream() {
|
||||||
}
|
}
|
||||||
|
|
||||||
val specialCookies = "PHPSESSID=e555h63ilisoj2l6j7b5d4jb6p; _csrf=9597150e45f485ad9c4f2e06a2572534d8415337eda9d48d0ecfa25b73b6a9e1a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%222HcnegjGB0nX205FAUPb86fqMx9HWIF1%22%3B%7D; _ga=GA1.1.1195498587.1701871187; _ga_VZD7HJ3WK6=GS1.1.$unixTime.4.0.1.$unixTime.0.0.0"
|
val specialCookies = "PHPSESSID=e555h63ilisoj2l6j7b5d4jb6p; _csrf=9597150e45f485ad9c4f2e06a2572534d8415337eda9d48d0ecfa25b73b6a9e1a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%222HcnegjGB0nX205FAUPb86fqMx9HWIF1%22%3B%7D; _ga=GA1.1.1195498587.1701871187; _ga_VZD7HJ3WK6=GS1.1.$unixTime.4.0.1.$unixTime.0.0.0"
|
||||||
getCinemaChecker(specialCookies)
|
|
||||||
val headers = mapOf(
|
val headers = mapOf(
|
||||||
"Cookie" to specialCookies,
|
"Cookie" to specialCookies,
|
||||||
"Connection" to "keep-alive",
|
"Connection" to "keep-alive",
|
||||||
|
|
|
@ -44,7 +44,6 @@ import kotlin.math.min
|
||||||
var watchflxCookies: Map<String, String>? = null
|
var watchflxCookies: Map<String, String>? = null
|
||||||
var filmxyCookies: Map<String, String>? = null
|
var filmxyCookies: Map<String, String>? = null
|
||||||
var sfServer: String? = null
|
var sfServer: String? = null
|
||||||
var cinemaTvChecker: Boolean? = null
|
|
||||||
|
|
||||||
val encodedIndex = arrayOf(
|
val encodedIndex = arrayOf(
|
||||||
"GamMovies",
|
"GamMovies",
|
||||||
|
@ -643,16 +642,6 @@ suspend fun getTvMoviesServer(url: String, season: Int?, episode: Int?): Pair<St
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun getCinemaChecker(cookie: String) = cinemaTvChecker ?: fetchCinemaChecker(cookie).also { cinemaTvChecker = it }
|
|
||||||
|
|
||||||
suspend fun fetchCinemaChecker(cookie: String): Boolean? {
|
|
||||||
return app.post(
|
|
||||||
base64Decode("aHR0cHM6Ly9jaW5lbWEud2l3aWNlbnRlci5jb20vYXBpL3YxL2Nvb2tpZQ=="),
|
|
||||||
data = mapOf("cookie" to cookie),
|
|
||||||
headers = mapOf("App-version" to "3.4", "Authorization" to "Basic d2l3aTpXaXdpQDIwMjA=")
|
|
||||||
).parsedSafe<Map<String,Boolean?>>()?.get("success")
|
|
||||||
}
|
|
||||||
|
|
||||||
suspend fun getSfServer() = sfServer ?: fetchSfServer().also { sfServer = it }
|
suspend fun getSfServer() = sfServer ?: fetchSfServer().also { sfServer = it }
|
||||||
|
|
||||||
suspend fun fetchSfServer(): String {
|
suspend fun fetchSfServer(): String {
|
||||||
|
|
Loading…
Reference in a new issue