From 91b49c248145285a410aa10ef24a83e9b2cbfb34 Mon Sep 17 00:00:00 2001 From: hexated Date: Fri, 12 May 2023 23:14:04 +0700 Subject: [PATCH] removed sorastream --- .../main/kotlin/com/hexated/SoraExtractor.kt | 21 ------------------- .../src/main/kotlin/com/hexated/SoraUtils.kt | 6 ------ 2 files changed, 27 deletions(-) diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index 1a616f23..17e2a8d1 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -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()?.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( diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt b/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt index 7e15ca51..4ea8f3a8 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt @@ -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@{