mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed LayarKaca
This commit is contained in:
parent
43beb98165
commit
4790518a13
3 changed files with 5 additions and 5 deletions
|
@ -75,7 +75,7 @@ class KuramanimeProvider : MainAPI() {
|
||||||
val title = this.selectFirst("h5 a")?.text() ?: return null
|
val title = this.selectFirst("h5 a")?.text() ?: return null
|
||||||
val posterUrl = fixUrl(this.select("div.product__item__pic.set-bg").attr("data-setbg"))
|
val posterUrl = fixUrl(this.select("div.product__item__pic.set-bg").attr("data-setbg"))
|
||||||
val episode = this.select("div.ep span").text().let {
|
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) {
|
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)")
|
val tags = document.select("div.anime__details__widget > div > div:nth-child(2) > ul > li:nth-child(1)")
|
||||||
.text().trim().replace("Genre: ", "").split(", ")
|
.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)")
|
document.select("div.anime__details__widget > div > div:nth-child(1) > ul > li:nth-child(5)")
|
||||||
.text().trim().replace("Musim: ", ""), ""
|
.text().trim().replace("Musim: ", ""), ""
|
||||||
).toIntOrNull()
|
).toIntOrNull()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 7
|
version = 8
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -8,9 +8,9 @@ import com.lagradost.cloudstream3.utils.loadExtractor
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
|
|
||||||
class LayarKacaProvider : MainAPI() {
|
class LayarKacaProvider : MainAPI() {
|
||||||
override var mainUrl = "https://lk21official.info"
|
override var mainUrl = "https://lk21official.vip"
|
||||||
// private val redirectUrl = "https://nd21x1.github.io"
|
// 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 var name = "LayarKaca"
|
||||||
override val hasMainPage = true
|
override val hasMainPage = true
|
||||||
override var lang = "id"
|
override var lang = "id"
|
||||||
|
|
Loading…
Reference in a new issue