This commit is contained in:
jack 2023-12-11 21:45:22 +07:00
parent b5d459ee0b
commit 408d91f5a5
2 changed files with 0 additions and 12 deletions

View File

@ -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"
getCinemaChecker(specialCookies)
val headers = mapOf(
"Cookie" to specialCookies,
"Connection" to "keep-alive",

View File

@ -44,7 +44,6 @@ import kotlin.math.min
var watchflxCookies: Map<String, String>? = null
var filmxyCookies: Map<String, String>? = null
var sfServer: String? = null
var cinemaTvChecker: Boolean? = null
val encodedIndex = arrayOf(
"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 fetchSfServer(): String {