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 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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue