This commit is contained in:
hexated 2023-05-08 19:44:16 +07:00
parent 0155aa2a20
commit 7d482b9509
3 changed files with 1 additions and 22 deletions

View file

@ -176,26 +176,6 @@ class LayarKacaProvider : MainAPI() {
): Boolean {
val document = app.get(data).document
// maybe will need this in future
// val sources = if (data.contains("-episode-")) {
// document.select("script").mapNotNull { script ->
// if (script.data().contains("var data =")) {
// val scriptData =
// script.toString().substringAfter("var data = '").substringBefore("';")
// Jsoup.parse(scriptData).select("li").map {
// fixUrl(it.select("a").attr("href"))
// }
// } else {
// null
// }
// }[0]
// } else {
// document.select("ul#loadProviders > li").map {
// fixUrl(it.select("a").attr("href"))
// }
// }
document.select("ul#loadProviders > li").map {
fixUrl(it.select("a").attr("href"))
}.apmap {