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 = 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…
Add table
Add a link
Reference in a new issue