diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index 2462680e..5f105550 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -1039,7 +1039,7 @@ object SoraExtractor : SoraStream() { app.get("$zoroAPI/ajax/v2/episode/sources?id=${server.second ?: return@servers}", headers = headers) .parsedSafe()?.link ?: return@servers val audio = if (server.third == "sub") "Raw" else "English Dub" - if (server.first == "Vidstreaming" || server.first == "Vidcloud") { + if (server.first == "Vidstreaming" || server.first == "MegaCloud") { extractRabbitStream( "${server.first} [$audio]", iframe, diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt b/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt index 02cbafe0..74ea627e 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraUtils.kt @@ -1780,12 +1780,16 @@ object RabbitStream { ioSafe { app.get("$extractorData&t=${generateTimeStamp()}&sid=${pollingData.sid}") } } } - val getSourcesUrl = "${ - mainIframeUrl.replace( + val mainIframeAjax = mainIframeUrl.let { + if(it.contains("/embed-2/e-1")) it.replace( + "/embed-2/e-1", + "/embed-2/ajax/e-1" + ) else it.replace( "/embed", "/ajax/embed" ) - }/getSources?id=$mainIframeId${sid?.let { "$&sId=$it" } ?: ""}" + } + val getSourcesUrl = "$mainIframeAjax/getSources?id=$mainIframeId${sid?.let { "$&sId=$it" } ?: ""}" val response = app.get( getSourcesUrl, referer = mainUrl,