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

View file

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