mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
vidplay/fallback : change to previous key (#836)
* change key * fix rabbitstream's key
This commit is contained in:
parent
5f51a8f7bc
commit
9d3b2ba3d2
2 changed files with 8 additions and 8 deletions
|
@ -16,13 +16,13 @@ import javax.crypto.Cipher
|
|||
import javax.crypto.spec.IvParameterSpec
|
||||
import javax.crypto.spec.SecretKeySpec
|
||||
|
||||
// Code found in https://github.com/theonlymo/keys
|
||||
// special credits to @theonlymo for providing key
|
||||
// Code found in https://github.com/Claudemirovsky/keys
|
||||
// special credits to @Claudemirovsky for providing key
|
||||
class Megacloud : Rabbitstream() {
|
||||
override val name = "Megacloud"
|
||||
override val mainUrl = "https://megacloud.tv"
|
||||
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() {
|
||||
|
@ -35,7 +35,7 @@ open class Rabbitstream : ExtractorApi() {
|
|||
override val mainUrl = "https://rabbitstream.net"
|
||||
override val requiresReferer = false
|
||||
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(
|
||||
url: String,
|
||||
|
|
|
@ -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? {
|
||||
|
|
Loading…
Reference in a new issue