Fix SuperStream timeout and Zoro

This commit is contained in:
Blatzar 2022-11-18 00:16:20 +01:00
parent 5b5d6d9481
commit cdb34effb3
4 changed files with 19 additions and 17 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 4
version = 5
cloudstream {

View file

@ -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 {