mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
test build
This commit is contained in:
parent
0608e1f452
commit
fcbf3f907f
4 changed files with 9 additions and 5 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -40,6 +40,11 @@ jobs:
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
uses: android-actions/setup-android@v2
|
uses: android-actions/setup-android@v2
|
||||||
|
|
||||||
|
- name: Access SORA_API
|
||||||
|
env:
|
||||||
|
SORA_API: $
|
||||||
|
run: echo SORA_API=\"$SORA_API\" > ./local.properties
|
||||||
|
|
||||||
- name: Build Plugins
|
- name: Build Plugins
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE/src
|
cd $GITHUB_WORKSPACE/src
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import org.jetbrains.kotlin.konan.properties.Properties
|
import org.jetbrains.kotlin.konan.properties.Properties
|
||||||
|
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 123
|
version = 122
|
||||||
|
|
||||||
android {
|
android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
|
@ -9,8 +9,6 @@ android {
|
||||||
properties.load(project.rootProject.file("local.properties").inputStream())
|
properties.load(project.rootProject.file("local.properties").inputStream())
|
||||||
|
|
||||||
buildConfigField("String", "SORA_API", "\"${properties.getProperty("SORA_API")}\"")
|
buildConfigField("String", "SORA_API", "\"${properties.getProperty("SORA_API")}\"")
|
||||||
buildConfigField("String", "SORA_WEB", "\"${properties.getProperty("SORA_WEB")}\"")
|
|
||||||
buildConfigField("String", "CRY_API", "\"${properties.getProperty("CRY_API")}\"")
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -661,7 +661,7 @@ object SoraExtractor : SoraStream() {
|
||||||
this.name,
|
this.name,
|
||||||
this.name,
|
this.name,
|
||||||
media?.mediaUrl ?: return@map null,
|
media?.mediaUrl ?: return@map null,
|
||||||
"${BuildConfig.SORA_WEB}/",
|
base64DecodeAPI("Lw==b20=LmM=b2s=a2w=bG8=Ly8=czo=dHA=aHQ="),
|
||||||
getSoraQuality(media.currentDefinition ?: ""),
|
getSoraQuality(media.currentDefinition ?: ""),
|
||||||
true,
|
true,
|
||||||
)
|
)
|
||||||
|
@ -2892,7 +2892,7 @@ object SoraExtractor : SoraStream() {
|
||||||
episode: Int? = null,
|
episode: Int? = null,
|
||||||
callback: (ExtractorLink) -> Unit
|
callback: (ExtractorLink) -> Unit
|
||||||
) {
|
) {
|
||||||
app.get("${BuildConfig.CRY_API}/stream/movie/$imdbId.json")
|
app.get("${cryMoviesAPI}/stream/movie/$imdbId.json")
|
||||||
.parsedSafe<CryMoviesResponse>()?.streams?.filter {
|
.parsedSafe<CryMoviesResponse>()?.streams?.filter {
|
||||||
matchingIndex(
|
matchingIndex(
|
||||||
it.title,
|
it.title,
|
||||||
|
|
|
@ -149,6 +149,7 @@ open class SoraStream : TmdbProvider() {
|
||||||
const val shinobiMovieAPI = "https://home.shinobicloud.cf/0:"
|
const val shinobiMovieAPI = "https://home.shinobicloud.cf/0:"
|
||||||
const val vitoenMovieAPI = "https://openmatte.vitoencodes.workers.dev/0:"
|
const val vitoenMovieAPI = "https://openmatte.vitoencodes.workers.dev/0:"
|
||||||
const val shivamhwAPI = "https://foogle.shivamhw.me"
|
const val shivamhwAPI = "https://foogle.shivamhw.me"
|
||||||
|
val cryMoviesAPI = base64DecodeAPI("ZXY=LmQ=cnM=a2U=b3I=Lnc=ZXI=ZGQ=bGE=cy0=b2I=YWM=Lmo=YWw=aW4=LWY=cm4=Ym8=cmU=Ly8=czo=dHA=aHQ=")
|
||||||
|
|
||||||
fun getType(t: String?): TvType {
|
fun getType(t: String?): TvType {
|
||||||
return when (t) {
|
return when (t) {
|
||||||
|
|
Loading…
Reference in a new issue