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

View file

@ -369,16 +369,16 @@ open class SoraStream : TmdbProvider() {
val res = parseJson<LinkData>(data)
argamap(
// {
// invokeSoraStream(
// res.title,
// res.year,
// res.season,
// res.episode,
// subtitleCallback,
// callback
// )
// },
{
invokeSoraStream(
res.title,
res.year,
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
)
},
// {
// invokeSoraStream(
// res.title,
// res.year,
// res.season,
// res.episode,
// subtitleCallback,
// callback
// )
// },
{
invokeSoraStream(
res.title,
res.year,
res.season,
res.episode,
subtitleCallback,
callback
)
},
{
if (!res.isAnime) invokeNinetv(
res.id,