anitubeinua: Fix fucking ajax url x2
This commit is contained in:
parent
472935c8e5
commit
533133df10
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 7
|
version = 8
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -105,10 +105,13 @@ class AnitubeinuaProvider : MainAPI() {
|
||||||
val subEpisodes = mutableListOf<Episode>()
|
val subEpisodes = mutableListOf<Episode>()
|
||||||
val dubEpisodes = mutableListOf<Episode>()
|
val dubEpisodes = mutableListOf<Episode>()
|
||||||
val id = url.split("/").last().split("-").first()
|
val id = url.split("/").last().split("-").first()
|
||||||
|
val dle_login_hash = document.body().selectFirst("script")!!.html()
|
||||||
|
.substringAfterLast("dle_login_hash = '")
|
||||||
|
.substringBefore("';")
|
||||||
|
|
||||||
val ajax =
|
val ajax =
|
||||||
fromPlaylistAjax(
|
fromPlaylistAjax(
|
||||||
"$mainUrl/engine/ajax/playlists.php?news_id=$id&xfield=playlist&user_hash=d9bee853908a5776972e5d49f106d9df239d2ede"
|
"$mainUrl/engine/ajax/playlists.php?news_id=$id&xfield=playlist&user_hash=$dle_login_hash"
|
||||||
)
|
)
|
||||||
|
|
||||||
if (!ajax.isNullOrEmpty()) { // Ajax list
|
if (!ajax.isNullOrEmpty()) { // Ajax list
|
||||||
|
|
Loading…
Reference in a new issue