removed sorastream

This commit is contained in:
hexated 2023-05-12 23:14:04 +07:00
parent 2b8ad97719
commit 91b49c2481
2 changed files with 0 additions and 27 deletions

View file

@ -648,27 +648,6 @@ object SoraExtractor : SoraStream() {
) )
) )
} }
if (season == null) return
json.definitionList?.map { video ->
val media = app.get(
"${BuildConfig.SORA_API}/movieDrama/getPlayInfo?category=${type}&contentId=${id}&episodeId=${json.id}&definition=${video.code}",
headers = soraHeaders,
).parsedSafe<SorastreamResponse>()?.data
callback.invoke(
ExtractorLink(
this.name,
this.name,
if (media?.mediaUrl?.startsWith(BuildConfig.SORAXA) == true) upgradeSoraUrl(
media.mediaUrl
) else media?.mediaUrl ?: return@map null,
if (media.mediaUrl.startsWith(BuildConfig.SORAHE)) base64DecodeAPI("Lw==b20=LmM=b2s=a2w=bG8=Ly8=czo=dHA=aHQ=") else "",
getSoraQuality(media.currentDefinition ?: ""),
true,
)
)
}
} }
suspend fun invokeXmovies( suspend fun invokeXmovies(

View file

@ -595,12 +595,6 @@ suspend fun fetchSoraEpisodes(id: String, type: String, episode: Int?): EpisodeV
} }
} }
fun upgradeSoraUrl(url: String) : String {
val expiry = System.currentTimeMillis() + (60 * 60 * 12 * 7)
val mac = "fuckfuck".encode().hmacSha256("$expiry".encode()).hex()
return "${url.replace(BuildConfig.SORAXA, BuildConfig.SORATED).substringBefore(".m3u8")}.m3u8?hdntl=exp=$expiry-acl=%2f*-data=hdntl-hmac=$mac"
}
suspend fun bypassOuo(url: String?): String? { suspend fun bypassOuo(url: String?): String? {
var res = session.get(url ?: return null) var res = session.get(url ?: return null)
run lit@{ run lit@{