mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
small fix
This commit is contained in:
parent
e7777079e6
commit
1bb35109f1
2 changed files with 8 additions and 4 deletions
|
@ -1039,7 +1039,7 @@ object SoraExtractor : SoraStream() {
|
||||||
app.get("$zoroAPI/ajax/v2/episode/sources?id=${server.second ?: return@servers}", headers = headers)
|
app.get("$zoroAPI/ajax/v2/episode/sources?id=${server.second ?: return@servers}", headers = headers)
|
||||||
.parsedSafe<ZoroResponses>()?.link ?: return@servers
|
.parsedSafe<ZoroResponses>()?.link ?: return@servers
|
||||||
val audio = if (server.third == "sub") "Raw" else "English Dub"
|
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(
|
extractRabbitStream(
|
||||||
"${server.first} [$audio]",
|
"${server.first} [$audio]",
|
||||||
iframe,
|
iframe,
|
||||||
|
|
|
@ -1780,12 +1780,16 @@ object RabbitStream {
|
||||||
ioSafe { app.get("$extractorData&t=${generateTimeStamp()}&sid=${pollingData.sid}") }
|
ioSafe { app.get("$extractorData&t=${generateTimeStamp()}&sid=${pollingData.sid}") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val getSourcesUrl = "${
|
val mainIframeAjax = mainIframeUrl.let {
|
||||||
mainIframeUrl.replace(
|
if(it.contains("/embed-2/e-1")) it.replace(
|
||||||
|
"/embed-2/e-1",
|
||||||
|
"/embed-2/ajax/e-1"
|
||||||
|
) else it.replace(
|
||||||
"/embed",
|
"/embed",
|
||||||
"/ajax/embed"
|
"/ajax/embed"
|
||||||
)
|
)
|
||||||
}/getSources?id=$mainIframeId${sid?.let { "$&sId=$it" } ?: ""}"
|
}
|
||||||
|
val getSourcesUrl = "$mainIframeAjax/getSources?id=$mainIframeId${sid?.let { "$&sId=$it" } ?: ""}"
|
||||||
val response = app.get(
|
val response = app.get(
|
||||||
getSourcesUrl,
|
getSourcesUrl,
|
||||||
referer = mainUrl,
|
referer = mainUrl,
|
||||||
|
|
Loading…
Reference in a new issue