From b3eade13264de4cfcd8474530bae91d7c21e8e0b Mon Sep 17 00:00:00 2001 From: hexated Date: Sat, 29 Oct 2022 04:17:22 +0700 Subject: [PATCH] fixed sora shit (don't banging me!!) --- SoraStream/build.gradle.kts | 2 +- SoraStream/src/main/kotlin/com/hexated/SoraStream.kt | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/SoraStream/build.gradle.kts b/SoraStream/build.gradle.kts index 4987b0e4..75c76e05 100644 --- a/SoraStream/build.gradle.kts +++ b/SoraStream/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 14 +version = 15 cloudstream { diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt b/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt index d35d551e..dc11de52 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt @@ -294,17 +294,17 @@ open class SoraStream : TmdbProvider() { "$mainServerAPI/movies/${res.id}/watch" } - val json = app.get( - query, - referer = referer, - headers = mapOf("User-Agent" to getRandomUserAgent()) - ).parsedSafe() - argamap( { invokeSoraVIP(res.id, res.season, res.episode, subtitleCallback, callback) }, { + val json = app.get( + query, + referer = referer, + headers = mapOf("User-Agent" to getRandomUserAgent()) + ).parsedSafe() + if (json?.sources.isNullOrEmpty()) { invokeLocalSources(referer, subtitleCallback, callback) } else {