sora: fix Flixon

This commit is contained in:
hexated 2023-06-05 16:46:05 +07:00
parent 8d04957973
commit 46ff205d9f
2 changed files with 3 additions and 4 deletions

View file

@ -1767,14 +1767,13 @@ object SoraExtractor : SoraStream() {
val unPacker =
app.get(
iframe ?: return,
referer = "https://flixon.ru/"
referer = "$flixonAPI/"
).document.selectFirst("script:containsData(JuicyCodes.Run)")
?.data()
?.substringAfter("JuicyCodes.Run(")?.substringBefore(");")?.split("+")
?.joinToString("") { it.replace("\"", "").trim() }
?.let { getAndUnpack(base64Decode(it)) }
val ref = "https://onionflix.ru/"
val link = Regex("[\"']file[\"']:[\"'](.+?)[\"'],").find(
unPacker ?: return
)?.groupValues?.getOrNull(1)
@ -1784,7 +1783,7 @@ object SoraExtractor : SoraStream() {
"Flixon",
"Flixon",
link ?: return,
ref,
"https://onionplay.stream/",
Qualities.P720.value,
link.contains(".m3u8")
)

View file

@ -112,7 +112,7 @@ open class SoraStream : TmdbProvider() {
const val bollyMazaAPI = "https://m.bollymaza.click"
const val moviesbayAPI = "https://moviesbay.live"
const val rStreamAPI = "https://remotestre.am"
const val flixonAPI = "https://flixon.ru"
const val flixonAPI = "https://flixon.lol"
const val animeKaizokuAPI = "https://animekaizoku.com"
const val movie123NetAPI = "https://ww8.0123movie.net"
const val smashyStreamAPI = "https://embed.smashystream.com"