fixed #427
This commit is contained in:
parent
08ad4dd567
commit
dba0cf5d27
|
@ -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 = 198
|
version = 199
|
||||||
|
|
||||||
android {
|
android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
|
|
|
@ -2469,7 +2469,7 @@ object SoraExtractor : SoraStream() {
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
"SFMovies",
|
"SFMovies",
|
||||||
"SFMovies",
|
"SFMovies",
|
||||||
fixUrl(video, base64DecodeAPI("cw==bmU=Ym8=Y2s=YmE=dC8=bmU=cy4=b3c=bmQ=d2k=ZS4=b3I=LmM=b2I=Ymw=cy4=bmU=Ym8=Y2s=YmE=Ly8=czo=dHA=aHQ=")),
|
fixUrl(video, getSfServer() ?: return),
|
||||||
"",
|
"",
|
||||||
Qualities.P1080.value,
|
Qualities.P1080.value,
|
||||||
INFER_TYPE
|
INFER_TYPE
|
||||||
|
|
|
@ -46,6 +46,8 @@ 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
|
||||||
|
|
||||||
val encodedIndex = arrayOf(
|
val encodedIndex = arrayOf(
|
||||||
"GamMovies",
|
"GamMovies",
|
||||||
"JSMovies",
|
"JSMovies",
|
||||||
|
@ -761,6 +763,14 @@ suspend fun getTvMoviesServer(url: String, season: Int?, episode: Int?): Pair<St
|
||||||
}.lastOrNull()
|
}.lastOrNull()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
suspend fun getSfServer() = sfServer ?: fetchSfServer().also { sfServer = it }
|
||||||
|
|
||||||
|
suspend fun fetchSfServer(): String? {
|
||||||
|
return app.get(base64DecodeAPI("ZQ==dXI=YXo=eC8=bGk=bWY=ZWE=dHI=L3M=aW4=bWE=aS0=YXA=aS8=YXA=YW0=cmU=c3Q=dC8=bmU=cy4=b3c=bmQ=d2k=ZS4=b3I=LmM=b2I=Ymw=aS4=YXA=YW0=cmU=c3Q=Ly8=czo=dHA=aHQ="))
|
||||||
|
.parsedSafe<List<Map<String, String>>>()?.first()?.get("link")
|
||||||
|
}
|
||||||
|
|
||||||
suspend fun getFilmxyCookies(url: String) = filmxyCookies ?: fetchFilmxyCookies(url).also { filmxyCookies = it }
|
suspend fun getFilmxyCookies(url: String) = filmxyCookies ?: fetchFilmxyCookies(url).also { filmxyCookies = it }
|
||||||
suspend fun fetchFilmxyCookies(url: String): Map<String, String> {
|
suspend fun fetchFilmxyCookies(url: String): Map<String, String> {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue