mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Small fixes
This commit is contained in:
parent
eda7ca36a2
commit
ca2f412db2
1 changed files with 3 additions and 1 deletions
|
@ -122,7 +122,7 @@ class CasaCinemaProvider : MainAPI() { // all providers must be an instance of M
|
||||||
val actors: List<ActorData> =
|
val actors: List<ActorData> =
|
||||||
document.select("div.cast_wraper>ul>li").map { actordata ->
|
document.select("div.cast_wraper>ul>li").map { actordata ->
|
||||||
val actorName = actordata.selectFirst("strong")?.text() ?: ""
|
val actorName = actordata.selectFirst("strong")?.text() ?: ""
|
||||||
val actorImage: String? =
|
val actorImage: String =
|
||||||
actordata.selectFirst("figure>img")?.attr("src") ?: ""
|
actordata.selectFirst("figure>img")?.attr("src") ?: ""
|
||||||
ActorData(actor = Actor(actorName, image = actorImage))
|
ActorData(actor = Actor(actorName, image = actorImage))
|
||||||
}
|
}
|
||||||
|
@ -182,6 +182,8 @@ class CasaCinemaProvider : MainAPI() { // all providers must be an instance of M
|
||||||
?.text()
|
?.text()
|
||||||
?.substringAfter("x")
|
?.substringAfter("x")
|
||||||
?.substringBefore(" ")
|
?.substringBefore(" ")
|
||||||
|
?.filter { it.isDigit() }
|
||||||
|
.orEmpty().ifBlank { "0" }
|
||||||
|
|
||||||
val epTitle =
|
val epTitle =
|
||||||
this.selectFirst("li.other_link>a")?.text().orEmpty().ifBlank {
|
this.selectFirst("li.other_link>a")?.text().orEmpty().ifBlank {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue