test build

This commit is contained in:
hexated 2023-04-22 14:30:47 +07:00
parent 0608e1f452
commit fcbf3f907f
4 changed files with 9 additions and 5 deletions

View file

@ -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

View file

@ -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")}\"")
} }
} }

View file

@ -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,

View file

@ -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) {