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
uses: android-actions/setup-android@v2
- name: Access SORA_API
env:
SORA_API: $
run: echo SORA_API=\"$SORA_API\" > ./local.properties
- name: Build Plugins
run: |
cd $GITHUB_WORKSPACE/src

View File

@ -1,7 +1,7 @@
import org.jetbrains.kotlin.konan.properties.Properties
// use an integer for version numbers
version = 123
version = 122
android {
defaultConfig {
@ -9,8 +9,6 @@ android {
properties.load(project.rootProject.file("local.properties").inputStream())
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,
media?.mediaUrl ?: return@map null,
"${BuildConfig.SORA_WEB}/",
base64DecodeAPI("Lw==b20=LmM=b2s=a2w=bG8=Ly8=czo=dHA=aHQ="),
getSoraQuality(media.currentDefinition ?: ""),
true,
)
@ -2892,7 +2892,7 @@ object SoraExtractor : SoraStream() {
episode: Int? = null,
callback: (ExtractorLink) -> Unit
) {
app.get("${BuildConfig.CRY_API}/stream/movie/$imdbId.json")
app.get("${cryMoviesAPI}/stream/movie/$imdbId.json")
.parsedSafe<CryMoviesResponse>()?.streams?.filter {
matchingIndex(
it.title,

View File

@ -149,6 +149,7 @@ open class SoraStream : TmdbProvider() {
const val shinobiMovieAPI = "https://home.shinobicloud.cf/0:"
const val vitoenMovieAPI = "https://openmatte.vitoencodes.workers.dev/0:"
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 {
return when (t) {