mirror of
https://github.com/recloudstream/cloudstream-extensions.git
synced 2024-08-15 03:03:54 +00:00
Fix SuperStream timeout and Zoro
This commit is contained in:
parent
5b5d6d9481
commit
cdb34effb3
4 changed files with 19 additions and 17 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 9
|
||||
version = 10
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package com.lagradost
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
import com.lagradost.SflixProvider.Companion.extractRabbitStream
|
||||
import com.lagradost.cloudstream3.*
|
||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addAniListId
|
||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addMalId
|
||||
|
@ -345,21 +346,21 @@ class ZoroProvider : MainAPI() {
|
|||
val extractorLink = app.get(
|
||||
link,
|
||||
).parsed<RapidCloudResponse>().link
|
||||
// val hasLoadedExtractorLink =
|
||||
val hasLoadedExtractorLink =
|
||||
loadExtractor(extractorLink, "https://rapid-cloud.ru/", subtitleCallback, callback)
|
||||
// if (!hasLoadedExtractorLink) {
|
||||
// extractRabbitStream(
|
||||
// extractorLink,
|
||||
// subtitleCallback,
|
||||
// // Blacklist VidCloud for now
|
||||
// { videoLink -> if (!videoLink.url.contains("betterstream")) callback(videoLink) },
|
||||
//// false,
|
||||
//// extractorData,
|
||||
//// decryptKey = getKey()
|
||||
// ) { sourceName ->
|
||||
// sourceName + " - ${it.first}"
|
||||
// }
|
||||
// }
|
||||
if (!hasLoadedExtractorLink) {
|
||||
extractRabbitStream(
|
||||
extractorLink,
|
||||
subtitleCallback,
|
||||
// Blacklist VidCloud for now
|
||||
{ videoLink -> if (!videoLink.url.contains("betterstream")) callback(videoLink) },
|
||||
false,
|
||||
null,
|
||||
decryptKey = getKey()
|
||||
) { sourceName ->
|
||||
sourceName + " - ${it.first}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 4
|
||||
version = 5
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -22,6 +22,7 @@ import javax.crypto.spec.SecretKeySpec
|
|||
import kotlin.math.roundToInt
|
||||
|
||||
class SuperStream : MainAPI() {
|
||||
private val timeout = 120L
|
||||
override var name = "SuperStream"
|
||||
override val hasMainPage = true
|
||||
override val hasChromecastSupport = true
|
||||
|
@ -177,7 +178,7 @@ class SuperStream : MainAPI() {
|
|||
"medium" to "Website&token$token"
|
||||
)
|
||||
|
||||
return app.post(apiUrl, headers = headers, data = data)
|
||||
return app.post(apiUrl, headers = headers, data = data, timeout = timeout)
|
||||
}
|
||||
|
||||
private suspend inline fun <reified T : Any> queryApiParsed(query: String): T {
|
||||
|
|
Loading…
Reference in a new issue