mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
[Sora] fixed Jeniusplay
This commit is contained in:
parent
25442bcaa1
commit
8c7e94ce20
2 changed files with 4 additions and 3 deletions
|
@ -472,6 +472,7 @@ object SoraExtractor : SoraStream() {
|
||||||
|
|
||||||
val res = app.get(url)
|
val res = app.get(url)
|
||||||
if (!res.isSuccessful) return
|
if (!res.isSuccessful) return
|
||||||
|
val referer = getBaseUrl(res.url)
|
||||||
val document = res.document
|
val document = res.document
|
||||||
val id = document.select("meta#dooplay-ajax-counter").attr("data-postid")
|
val id = document.select("meta#dooplay-ajax-counter").attr("data-postid")
|
||||||
val type = if (url.contains("/movie/")) "movie" else "tv"
|
val type = if (url.contains("/movie/")) "movie" else "tv"
|
||||||
|
@ -480,7 +481,7 @@ object SoraExtractor : SoraStream() {
|
||||||
it.attr("data-nume")
|
it.attr("data-nume")
|
||||||
}.apmap { nume ->
|
}.apmap { nume ->
|
||||||
val source = app.post(
|
val source = app.post(
|
||||||
url = "$idlixAPI/wp-admin/admin-ajax.php",
|
url = "$referer/wp-admin/admin-ajax.php",
|
||||||
data = mapOf(
|
data = mapOf(
|
||||||
"action" to "doo_player_ajax",
|
"action" to "doo_player_ajax",
|
||||||
"post" to id,
|
"post" to id,
|
||||||
|
@ -492,7 +493,7 @@ object SoraExtractor : SoraStream() {
|
||||||
).parsed<ResponseHash>().embed_url
|
).parsed<ResponseHash>().embed_url
|
||||||
|
|
||||||
if (!source.contains("youtube")) {
|
if (!source.contains("youtube")) {
|
||||||
loadExtractor(source, "$idlixAPI/", subtitleCallback, callback)
|
loadExtractor(source, "$referer/", subtitleCallback, callback)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ open class SoraStream : TmdbProvider() {
|
||||||
const val databaseGdriveAPI = "https://databasegdriveplayer.co"
|
const val databaseGdriveAPI = "https://databasegdriveplayer.co"
|
||||||
const val hdMovieBoxAPI = "https://hdmoviebox.net"
|
const val hdMovieBoxAPI = "https://hdmoviebox.net"
|
||||||
const val series9API = "https://series9.la"
|
const val series9API = "https://series9.la"
|
||||||
const val idlixAPI = "https://88.210.3.94"
|
const val idlixAPI = "https://88.210.12.206"
|
||||||
const val noverseAPI = "https://www.nollyverse.com"
|
const val noverseAPI = "https://www.nollyverse.com"
|
||||||
const val olgplyAPI = "https://olgply.xyz"
|
const val olgplyAPI = "https://olgply.xyz"
|
||||||
const val uniqueStreamAPI = "https://uniquestream.net"
|
const val uniqueStreamAPI = "https://uniquestream.net"
|
||||||
|
|
Loading…
Reference in a new issue