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
|
||||
version = 14
|
||||
version = 15
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -294,17 +294,17 @@ open class SoraStream : TmdbProvider() {
|
|||
"$mainServerAPI/movies/${res.id}/watch"
|
||||
}
|
||||
|
||||
argamap(
|
||||
{
|
||||
invokeSoraVIP(res.id, res.season, res.episode, subtitleCallback, callback)
|
||||
},
|
||||
{
|
||||
val json = app.get(
|
||||
query,
|
||||
referer = referer,
|
||||
headers = mapOf("User-Agent" to getRandomUserAgent())
|
||||
).parsedSafe<LoadLinks>()
|
||||
|
||||
argamap(
|
||||
{
|
||||
invokeSoraVIP(res.id, res.season, res.episode, subtitleCallback, callback)
|
||||
},
|
||||
{
|
||||
if (json?.sources.isNullOrEmpty()) {
|
||||
invokeLocalSources(referer, subtitleCallback, callback)
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue