change key

This commit is contained in:
Sofie 2023-12-22 21:49:54 +00:00 committed by GitHub
parent 5f51a8f7bc
commit 98e777c643
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,12 +10,13 @@ import com.lagradost.cloudstream3.utils.M3u8Helper
import javax.crypto.Cipher
import javax.crypto.spec.SecretKeySpec
// Code found in https://github.com/J4zzyB1te7s/keys
// special credits to @J4zzyB1te7s for providing key
// Code found in https://github.com/Claudemirovsky/worstsource-keys
// special credits to @Claudemirovsky for providing key
open class Vidplay : ExtractorApi() {
override val name = "Vidplay"
override val mainUrl = "https://vidplay.site"
override val requiresReferer = true
open val key = "https://raw.githubusercontent.com/Claudemirovsky/worstsource-keys/keys/keys.json"
override suspend fun getUrl(
url: String,
@ -44,8 +45,7 @@ open class Vidplay : ExtractorApi() {
}
private suspend fun getKeys(): List<String> {
return app.get("https://raw.githubusercontent.com/J4zzyB1te7s/keys/keys/keys.json")
.parsed()
return app.get(key).parsed()
}
private suspend fun callFutoken(id: String, url: String): String? {