This commit is contained in:
hexated 2023-04-22 17:01:28 +07:00
parent 3c8f6d3a7d
commit 43c6c3108b
3 changed files with 38 additions and 38 deletions

View file

@ -649,24 +649,24 @@ object SoraExtractor : SoraStream() {
) )
} }
if(season == null) return // if(season == null) return
json.definitionList?.map { video -> // json.definitionList?.map { video ->
val media = app.get( // val media = app.get(
"${BuildConfig.SORA_API}/movieDrama/getPlayInfo?category=${type}&contentId=${id}&episodeId=${json.id}&definition=${video.code}", // "${BuildConfig.SORA_API}/movieDrama/getPlayInfo?category=${type}&contentId=${id}&episodeId=${json.id}&definition=${video.code}",
headers = soraHeaders, // headers = soraHeaders,
).parsedSafe<SorastreamResponse>()?.data // ).parsedSafe<SorastreamResponse>()?.data
//
callback.invoke( // callback.invoke(
ExtractorLink( // ExtractorLink(
this.name, // this.name,
this.name, // this.name,
media?.mediaUrl ?: return@map null, // media?.mediaUrl ?: return@map null,
base64DecodeAPI("Lw==b20=LmM=b2s=a2w=bG8=Ly8=czo=dHA=aHQ="), // base64DecodeAPI("Lw==b20=LmM=b2s=a2w=bG8=Ly8=czo=dHA=aHQ="),
getSoraQuality(media.currentDefinition ?: ""), // getSoraQuality(media.currentDefinition ?: ""),
true, // true,
) // )
) // )
} // }
} }
suspend fun invokeXmovies( suspend fun invokeXmovies(

View file

@ -369,16 +369,16 @@ open class SoraStream : TmdbProvider() {
val res = parseJson<LinkData>(data) val res = parseJson<LinkData>(data)
argamap( argamap(
// { {
// invokeSoraStream( invokeSoraStream(
// res.title, res.title,
// res.year, res.year,
// res.season, res.season,
// res.episode, res.episode,
// subtitleCallback, subtitleCallback,
// callback callback
// ) )
// }, },
{ {
invokeTwoEmbed(res.id, res.season, res.episode, subtitleCallback, callback) invokeTwoEmbed(res.id, res.season, res.episode, subtitleCallback, callback)
}, },

View file

@ -64,16 +64,16 @@ class SoraStreamLite : SoraStream() {
subtitleCallback subtitleCallback
) )
}, },
// { {
// invokeSoraStream( invokeSoraStream(
// res.title, res.title,
// res.year, res.year,
// res.season, res.season,
// res.episode, res.episode,
// subtitleCallback, subtitleCallback,
// callback callback
// ) )
// }, },
{ {
if (!res.isAnime) invokeNinetv( if (!res.isAnime) invokeNinetv(
res.id, res.id,