mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed Otakudesu, Rebahin, Kuramanime
This commit is contained in:
parent
57ebef9198
commit
25e2deb249
7 changed files with 16 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 5
|
||||
version = 6
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -181,7 +181,7 @@ class OtakudesuProvider : MainAPI() {
|
|||
data
|
||||
// , interceptor = interceptor
|
||||
).document
|
||||
val scriptData = document.select("script").last()?.data()
|
||||
val scriptData = document.select("script:containsData(action:)").lastOrNull()?.data()
|
||||
val token = scriptData?.substringAfter("{action:\"")?.substringBefore("\"}").toString()
|
||||
|
||||
val nonce = app.post("$mainUrl/wp-admin/admin-ajax.php", data = mapOf("action" to token))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue