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
61f728cad1
commit
9b2205ba89
2 changed files with 5 additions and 9 deletions
|
@ -200,10 +200,10 @@ class IdlixProvider : MainAPI() {
|
||||||
it.attr("data-nume")
|
it.attr("data-nume")
|
||||||
}.apmap { nume ->
|
}.apmap { nume ->
|
||||||
safeApiCall {
|
safeApiCall {
|
||||||
val source = app.get(
|
val source = app.post(
|
||||||
url = "$directUrl/wp-json/dooplayer/v2/$id/$type/$nume",
|
url = "$directUrl/wp-admin/admin-ajax.php", data = mapOf(
|
||||||
headers = mapOf("X-Requested-With" to "XMLHttpRequest"),
|
"action" to "doo_player_ajax", "post" to id, "nume" to nume, "type" to type
|
||||||
referer = data
|
), headers = mapOf("X-Requested-With" to "XMLHttpRequest"), referer = data
|
||||||
).let { tryParseJson<ResponseHash>(it.text) } ?: return@safeApiCall
|
).let { tryParseJson<ResponseHash>(it.text) } ?: return@safeApiCall
|
||||||
|
|
||||||
var decrypted = AesHelper.cryptoAESHandler(source.embed_url,source.key.toByteArray(), false)?.fixBloat() ?: return@safeApiCall
|
var decrypted = AesHelper.cryptoAESHandler(source.embed_url,source.key.toByteArray(), false)?.fixBloat() ?: return@safeApiCall
|
||||||
|
|
|
@ -472,11 +472,7 @@ object SoraExtractor : SoraStream() {
|
||||||
it.attr("data-type")
|
it.attr("data-type")
|
||||||
)
|
)
|
||||||
}.apmap { (id, nume, type) ->
|
}.apmap { (id, nume, type) ->
|
||||||
val json = if(encrypt) app.get(
|
val json = app.post(
|
||||||
url = "$referer/wp-json/dooplayer/v2/$id/$type/$nume",
|
|
||||||
headers = headers,
|
|
||||||
referer = url
|
|
||||||
) else app.post(
|
|
||||||
url = "$referer/wp-admin/admin-ajax.php", data = mapOf(
|
url = "$referer/wp-admin/admin-ajax.php", data = mapOf(
|
||||||
"action" to "doo_player_ajax", "post" to id, "nume" to nume, "type" to type
|
"action" to "doo_player_ajax", "post" to id, "nume" to nume, "type" to type
|
||||||
), headers = headers, referer = url
|
), headers = headers, referer = url
|
||||||
|
|
Loading…
Reference in a new issue