Sflix fix

This commit is contained in:
Blatzar 2022-09-17 20:16:22 +02:00
parent 857ffe83d5
commit 42f32f4566
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -459,11 +459,11 @@ open class SflixProvider : MainAPI() {
} }
suspend fun getKey(): String? { suspend fun getKey(): String? {
data class KeyObject( // data class KeyObject(
@JsonProperty("key") val key: String? = null // @JsonProperty("key") val key: String? = null
) // )
return app.get("https://raw.githubusercontent.com/chenkaslowankiya/BruhGlow/main/keys.json") return app.get("https://raw.githubusercontent.com/chenkaslowankiya/BruhGlow/main/keys.json").text
.parsed<KeyObject>().key // .parsed<KeyObject>().key
} }
/** /**