fixed LayarKaca

This commit is contained in:
hexated 2023-01-24 06:21:04 +07:00
parent 43beb98165
commit 4790518a13
3 changed files with 5 additions and 5 deletions

View file

@ -75,7 +75,7 @@ class KuramanimeProvider : MainAPI() {
val title = this.selectFirst("h5 a")?.text() ?: return null
val posterUrl = fixUrl(this.select("div.product__item__pic.set-bg").attr("data-setbg"))
val episode = this.select("div.ep span").text().let {
Regex("Ep\\s([0-9]+)\\s/").find(it)?.groupValues?.getOrNull(1)?.toIntOrNull()
Regex("Ep\\s(\\d+)\\s/").find(it)?.groupValues?.getOrNull(1)?.toIntOrNull()
}
return newAnimeSearchResponse(title, href, TvType.Anime) {
@ -102,7 +102,7 @@ class KuramanimeProvider : MainAPI() {
val tags = document.select("div.anime__details__widget > div > div:nth-child(2) > ul > li:nth-child(1)")
.text().trim().replace("Genre: ", "").split(", ")
val year = Regex("[^0-9]").replace(
val year = Regex("\\D").replace(
document.select("div.anime__details__widget > div > div:nth-child(1) > ul > li:nth-child(5)")
.text().trim().replace("Musim: ", ""), ""
).toIntOrNull()

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 7
version = 8
cloudstream {

View file

@ -8,9 +8,9 @@ import com.lagradost.cloudstream3.utils.loadExtractor
import org.jsoup.nodes.Element
class LayarKacaProvider : MainAPI() {
override var mainUrl = "https://lk21official.info"
override var mainUrl = "https://lk21official.vip"
// private val redirectUrl = "https://nd21x1.github.io"
private val seriesUrl = "https://drama.nontondrama.lol"
private val seriesUrl = "https://drama1.nontondrama.lol"
override var name = "LayarKaca"
override val hasMainPage = true
override var lang = "id"