mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
removed sorastream
This commit is contained in:
parent
2b8ad97719
commit
91b49c2481
2 changed files with 0 additions and 27 deletions
|
@ -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(
|
||||
|
|
|
@ -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? {
|
||||
var res = session.get(url ?: return null)
|
||||
run lit@{
|
||||
|
|
Loading…
Reference in a new issue