uakino: Fix episode parsing for loadLinks logic
This commit is contained in:
parent
ffb97eb6c6
commit
1c138cda7c
1 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
||||||
package com.lagradost
|
package com.lagradost
|
||||||
|
|
||||||
import android.util.Log
|
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
||||||
|
@ -216,7 +215,6 @@ class UakinoProvider : MainAPI() {
|
||||||
): Boolean {
|
): Boolean {
|
||||||
val dataList = data.split(",")
|
val dataList = data.split(",")
|
||||||
// TODO: OPTIMIZE code!!! Remove this shitty code as soon as possible!!!!!!
|
// TODO: OPTIMIZE code!!! Remove this shitty code as soon as possible!!!!!!
|
||||||
Log.d("CakesTwix-Debug", data)
|
|
||||||
if (dataList.size == 1) {
|
if (dataList.size == 1) {
|
||||||
val id = data.split("/").last().split("-").first()
|
val id = data.split("/").last().split("-").first()
|
||||||
val responseGet =
|
val responseGet =
|
||||||
|
@ -302,6 +300,7 @@ class UakinoProvider : MainAPI() {
|
||||||
Jsoup.parse(it)
|
Jsoup.parse(it)
|
||||||
.select("div.playlists-videos li:contains(${dataList[1]})")
|
.select("div.playlists-videos li:contains(${dataList[1]})")
|
||||||
.mapNotNull { eps ->
|
.mapNotNull { eps ->
|
||||||
|
if (eps.text() != dataList[1]) return@mapNotNull
|
||||||
var href = eps.attr("data-file") // ashdi
|
var href = eps.attr("data-file") // ashdi
|
||||||
// Can be without https:
|
// Can be without https:
|
||||||
if (!href.contains("https://")) {
|
if (!href.contains("https://")) {
|
||||||
|
|
Loading…
Reference in a new issue