small fix

This commit is contained in:
hexated 2023-07-04 22:14:03 +07:00
parent e7777079e6
commit 1bb35109f1
2 changed files with 8 additions and 4 deletions

View file

@ -1039,7 +1039,7 @@ object SoraExtractor : SoraStream() {
app.get("$zoroAPI/ajax/v2/episode/sources?id=${server.second ?: return@servers}", headers = headers)
.parsedSafe<ZoroResponses>()?.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,

View file

@ -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,