mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
add delay
This commit is contained in:
parent
c51474a6cf
commit
bf258e357b
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@ import com.lagradost.nicehttp.Session
|
||||||
import com.lagradost.nicehttp.requestCreator
|
import com.lagradost.nicehttp.requestCreator
|
||||||
import okhttp3.HttpUrl.Companion.toHttpUrl
|
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||||
import com.google.gson.JsonParser
|
import com.google.gson.JsonParser
|
||||||
|
import kotlinx.coroutines.delay
|
||||||
import okhttp3.RequestBody.Companion.toRequestBody
|
import okhttp3.RequestBody.Companion.toRequestBody
|
||||||
import java.net.URI
|
import java.net.URI
|
||||||
|
|
||||||
|
@ -814,6 +815,7 @@ object SoraExtractor : SoraStream() {
|
||||||
).parsedSafe<Load>()?.data?.episodeVo?.first { it.seriesNo == (episode ?: 0) }
|
).parsedSafe<Load>()?.data?.episodeVo?.first { it.seriesNo == (episode ?: 0) }
|
||||||
|
|
||||||
json?.definitionList?.apmap { video ->
|
json?.definitionList?.apmap { video ->
|
||||||
|
delay(1000)
|
||||||
app.get(
|
app.get(
|
||||||
"${vipAPI}/media/previewInfo?category=${type}&contentId=${id}&episodeId=${json.id}&definition=${video.code}",
|
"${vipAPI}/media/previewInfo?category=${type}&contentId=${id}&episodeId=${json.id}&definition=${video.code}",
|
||||||
headers = headers
|
headers = headers
|
||||||
|
|
Loading…
Reference in a new issue