From b15b792576bf98f551489ccd5e8ace53b707cc19 Mon Sep 17 00:00:00 2001 From: Marouane <57333995+riimuru@users.noreply.github.com> Date: Sun, 18 Dec 2022 05:26:40 -0500 Subject: [PATCH] fix sflix (#30) Co-authored-by: Cloudburst <18114966+C10udburst@users.noreply.github.com> --- SflixProvider/build.gradle.kts | 4 ++-- .../src/main/kotlin/com/lagradost/SflixProvider.kt | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/SflixProvider/build.gradle.kts b/SflixProvider/build.gradle.kts index 942db7d..37cb297 100644 --- a/SflixProvider/build.gradle.kts +++ b/SflixProvider/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 10 +version = 11 cloudstream { @@ -25,4 +25,4 @@ cloudstream { ) iconUrl = "https://www.google.com/s2/favicons?domain=www.2embed.to&sz=%size%" -} \ No newline at end of file +} diff --git a/SflixProvider/src/main/kotlin/com/lagradost/SflixProvider.kt b/SflixProvider/src/main/kotlin/com/lagradost/SflixProvider.kt index 0c14c67..e998ab6 100644 --- a/SflixProvider/src/main/kotlin/com/lagradost/SflixProvider.kt +++ b/SflixProvider/src/main/kotlin/com/lagradost/SflixProvider.kt @@ -458,11 +458,8 @@ open class SflixProvider : MainAPI() { } suspend fun getKey(): String? { - data class KeyObject( - @JsonProperty("key") val key: String? = null - ) - return app.get("https://raw.githubusercontent.com/BlipBlob/blabflow/main/keys.json") - .parsed().key + return app.get("https://raw.githubusercontent.com/consumet/rapidclown/rabbitstream/key.txt") + .text } /**