fixed sora shit (don't banging me!!)

This commit is contained in:
hexated 2022-10-29 04:17:22 +07:00
parent 7dd469be03
commit b3eade1326
2 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers // use an integer for version numbers
version = 14 version = 15
cloudstream { cloudstream {

View file

@ -294,17 +294,17 @@ open class SoraStream : TmdbProvider() {
"$mainServerAPI/movies/${res.id}/watch" "$mainServerAPI/movies/${res.id}/watch"
} }
argamap(
{
invokeSoraVIP(res.id, res.season, res.episode, subtitleCallback, callback)
},
{
val json = app.get( val json = app.get(
query, query,
referer = referer, referer = referer,
headers = mapOf("User-Agent" to getRandomUserAgent()) headers = mapOf("User-Agent" to getRandomUserAgent())
).parsedSafe<LoadLinks>() ).parsedSafe<LoadLinks>()
argamap(
{
invokeSoraVIP(res.id, res.season, res.episode, subtitleCallback, callback)
},
{
if (json?.sources.isNullOrEmpty()) { if (json?.sources.isNullOrEmpty()) {
invokeLocalSources(referer, subtitleCallback, callback) invokeLocalSources(referer, subtitleCallback, callback)
} else { } else {