diff --git a/SoraStream/build.gradle.kts b/SoraStream/build.gradle.kts index 00119a4f..b04fe715 100644 --- a/SoraStream/build.gradle.kts +++ b/SoraStream/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 49 +version = 50 cloudstream { diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index 29a04897..37797f05 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -10,7 +10,9 @@ import com.lagradost.nicehttp.Session import com.google.gson.JsonParser import com.lagradost.cloudstream3.extractors.XStreamCdn import com.lagradost.cloudstream3.network.CloudflareKiller +import com.lagradost.nicehttp.RequestBodyTypes import kotlinx.coroutines.delay +import okhttp3.MediaType.Companion.toMediaTypeOrNull import okhttp3.RequestBody.Companion.toRequestBody val session = Session(Requests().baseClient) @@ -830,26 +832,25 @@ object SoraExtractor : SoraStream() { ) } - json?.definitionList?.apmap { video -> - delay(1000) - app.get( - "${vipAPI}/media/previewInfo?category=${type}&contentId=${id}&episodeId=${json.id}&definition=${video.code}", - headers = headers - ).parsedSafe