vidplay/fallback : change to previous key (#836)

* change key

* fix rabbitstream's key
This commit is contained in:
Sofie 2023-12-24 05:55:02 +07:00 committed by GitHub
parent 5f51a8f7bc
commit 9d3b2ba3d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -16,13 +16,13 @@ import javax.crypto.Cipher
import javax.crypto.spec.IvParameterSpec import javax.crypto.spec.IvParameterSpec
import javax.crypto.spec.SecretKeySpec import javax.crypto.spec.SecretKeySpec
// Code found in https://github.com/theonlymo/keys // Code found in https://github.com/Claudemirovsky/keys
// special credits to @theonlymo for providing key // special credits to @Claudemirovsky for providing key
class Megacloud : Rabbitstream() { class Megacloud : Rabbitstream() {
override val name = "Megacloud" override val name = "Megacloud"
override val mainUrl = "https://megacloud.tv" override val mainUrl = "https://megacloud.tv"
override val embed = "embed-2/ajax/e-1" override val embed = "embed-2/ajax/e-1"
override val key = "https://raw.githubusercontent.com/theonlymo/keys/e1/key" override val key = "https://raw.githubusercontent.com/Claudemirovsky/keys/e1/key"
} }
class Dokicloud : Rabbitstream() { class Dokicloud : Rabbitstream() {
@ -35,7 +35,7 @@ open class Rabbitstream : ExtractorApi() {
override val mainUrl = "https://rabbitstream.net" override val mainUrl = "https://rabbitstream.net"
override val requiresReferer = false override val requiresReferer = false
open val embed = "ajax/embed-4" open val embed = "ajax/embed-4"
open val key = "https://raw.githubusercontent.com/theonlymo/keys/e4/key" open val key = "https://raw.githubusercontent.com/Claudemirovsky/keys/e4/key"
override suspend fun getUrl( override suspend fun getUrl(
url: String, url: String,

View file

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