mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed sora shit (don't banging me!!)
This commit is contained in:
parent
7dd469be03
commit
b3eade1326
2 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 14
|
version = 15
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue