mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
try fixing build
This commit is contained in:
parent
1a3e2da78f
commit
6ee2b55f22
1 changed files with 40 additions and 40 deletions
|
@ -334,46 +334,46 @@ open class SoraStream : TmdbProvider() {
|
|||
}
|
||||
|
||||
argamap(
|
||||
// {
|
||||
// invokeSoraVIP(
|
||||
// res.title,
|
||||
// res.orgTitle,
|
||||
// res.year,
|
||||
// res.season,
|
||||
// res.episode,
|
||||
// subtitleCallback,
|
||||
// callback
|
||||
// )
|
||||
// },
|
||||
// {
|
||||
// val json = app.get(
|
||||
// query,
|
||||
// referer = referer,
|
||||
// headers = mapOf("User-Agent" to getRandomUserAgent())
|
||||
// ).parsedSafe<LoadLinks>()
|
||||
//
|
||||
// json?.sources?.map { source ->
|
||||
// callback.invoke(
|
||||
// ExtractorLink(
|
||||
// this.name,
|
||||
// this.name,
|
||||
// source.url ?: return@map null,
|
||||
// "$mainServerAPI/",
|
||||
// source.quality?.toIntOrNull() ?: Qualities.Unknown.value,
|
||||
// isM3u8 = source.isM3U8,
|
||||
// headers = mapOf("Origin" to mainServerAPI)
|
||||
// )
|
||||
// )
|
||||
// }
|
||||
// json?.subtitles?.map { sub ->
|
||||
// subtitleCallback.invoke(
|
||||
// SubtitleFile(
|
||||
// getLanguage(sub.lang.toString()),
|
||||
// sub.url ?: return@map null
|
||||
// )
|
||||
// )
|
||||
// }
|
||||
// },
|
||||
{
|
||||
invokeSoraVIP(
|
||||
res.title,
|
||||
res.orgTitle,
|
||||
res.year,
|
||||
res.season,
|
||||
res.episode,
|
||||
subtitleCallback,
|
||||
callback
|
||||
)
|
||||
},
|
||||
{
|
||||
val json = app.get(
|
||||
query,
|
||||
referer = referer,
|
||||
headers = mapOf("User-Agent" to getRandomUserAgent())
|
||||
).parsedSafe<LoadLinks>()
|
||||
|
||||
json?.sources?.map { source ->
|
||||
callback.invoke(
|
||||
ExtractorLink(
|
||||
this.name,
|
||||
this.name,
|
||||
source.url ?: return@map null,
|
||||
"$mainServerAPI/",
|
||||
source.quality?.toIntOrNull() ?: Qualities.Unknown.value,
|
||||
isM3u8 = source.isM3U8,
|
||||
headers = mapOf("Origin" to mainServerAPI)
|
||||
)
|
||||
)
|
||||
}
|
||||
json?.subtitles?.map { sub ->
|
||||
subtitleCallback.invoke(
|
||||
SubtitleFile(
|
||||
getLanguage(sub.lang.toString()),
|
||||
sub.url ?: return@map null
|
||||
)
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
invokeTwoEmbed(res.id, res.season, res.episode, subtitleCallback, callback)
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue