From bf258e357ba09ac83fa2e00968f92541f9bbdd25 Mon Sep 17 00:00:00 2001 From: hexated Date: Wed, 9 Nov 2022 07:26:07 +0700 Subject: [PATCH] add delay --- SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index 2d85d936..10f38522 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -11,6 +11,7 @@ import com.lagradost.nicehttp.Session import com.lagradost.nicehttp.requestCreator import okhttp3.HttpUrl.Companion.toHttpUrl import com.google.gson.JsonParser +import kotlinx.coroutines.delay import okhttp3.RequestBody.Companion.toRequestBody import java.net.URI @@ -814,6 +815,7 @@ object SoraExtractor : SoraStream() { ).parsedSafe()?.data?.episodeVo?.first { it.seriesNo == (episode ?: 0) } json?.definitionList?.apmap { video -> + delay(1000) app.get( "${vipAPI}/media/previewInfo?category=${type}&contentId=${id}&episodeId=${json.id}&definition=${video.code}", headers = headers