mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed #335
This commit is contained in:
parent
249879f4d6
commit
c424793e9f
2 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 45
|
version = 46
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -30,11 +30,11 @@ class Hdmovie2 : Movierulzhd() {
|
||||||
): Boolean {
|
): Boolean {
|
||||||
if (data.startsWith("{")) {
|
if (data.startsWith("{")) {
|
||||||
val loadData = tryParseJson<LinkData>(data)
|
val loadData = tryParseJson<LinkData>(data)
|
||||||
val source = app.get(
|
val source = app.post(
|
||||||
url = "$directUrl/wp-json/dooplayer/v2/${loadData?.post}/${loadData?.type}/${loadData?.nume}",
|
url = "$directUrl/wp-admin/admin-ajax.php", data = mapOf(
|
||||||
referer = data,
|
"action" to "doo_player_ajax", "post" to "${loadData?.post}", "nume" to "${loadData?.nume}", "type" to "${loadData?.type}"
|
||||||
headers = mapOf("X-Requested-With" to "XMLHttpRequest")
|
), referer = data, headers = mapOf("Accept" to "*/*", "X-Requested-With" to "XMLHttpRequest"
|
||||||
).parsed<ResponseHash>().embed_url.getIframe()
|
)).parsed<ResponseHash>().embed_url.getIframe()
|
||||||
if (!source.contains("youtube")) loadExtractor(
|
if (!source.contains("youtube")) loadExtractor(
|
||||||
source,
|
source,
|
||||||
"$directUrl/",
|
"$directUrl/",
|
||||||
|
|
Loading…
Reference in a new issue