mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
sora: fix smashy1
This commit is contained in:
parent
3702430c02
commit
1375d17fce
2 changed files with 3 additions and 2 deletions
|
@ -1889,7 +1889,7 @@ object SoraExtractor : SoraStream() {
|
||||||
}.apmap {
|
}.apmap {
|
||||||
when {
|
when {
|
||||||
it.first.contains("/ffix") && !isAnime -> {
|
it.first.contains("/ffix") && !isAnime -> {
|
||||||
invokeSmashyFfix(it.second, it.first, callback)
|
invokeSmashyFfix(it.second, it.first, url, callback)
|
||||||
}
|
}
|
||||||
it.first.contains("/gtop") -> {
|
it.first.contains("/gtop") -> {
|
||||||
invokeSmashyGtop(it.second, it.first, callback)
|
invokeSmashyGtop(it.second, it.first, callback)
|
||||||
|
|
|
@ -431,10 +431,11 @@ suspend fun invokeVizcloud(
|
||||||
suspend fun invokeSmashyFfix(
|
suspend fun invokeSmashyFfix(
|
||||||
name: String,
|
name: String,
|
||||||
url: String,
|
url: String,
|
||||||
|
ref: String,
|
||||||
callback: (ExtractorLink) -> Unit,
|
callback: (ExtractorLink) -> Unit,
|
||||||
) {
|
) {
|
||||||
val script =
|
val script =
|
||||||
app.get(url).document.selectFirst("script:containsData(player =)")?.data() ?: return
|
app.get(url, referer = ref).document.selectFirst("script:containsData(player =)")?.data() ?: return
|
||||||
|
|
||||||
val source =
|
val source =
|
||||||
Regex("file:\\s['\"](\\S+?)['|\"]").find(script)?.groupValues?.get(
|
Regex("file:\\s['\"](\\S+?)['|\"]").find(script)?.groupValues?.get(
|
||||||
|
|
Loading…
Reference in a new issue