mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Update PhimmoichillProvider.kt
This commit is contained in:
parent
bbac931833
commit
62f5992d5a
1 changed files with 5 additions and 4 deletions
|
@ -97,14 +97,15 @@ class PhimmoichillProvider : MainAPI() {
|
||||||
document.select("ul.entry-meta.block-film li:nth-child(7) span").text().toRatingInt()
|
document.select("ul.entry-meta.block-film li:nth-child(7) span").text().toRatingInt()
|
||||||
val actors = document.select("ul.entry-meta.block-film li:last-child a").map { it.text() }
|
val actors = document.select("ul.entry-meta.block-film li:last-child a").map { it.text() }
|
||||||
val recommendations = document.select("ul#list-film-realted li.item").mapNotNull {
|
val recommendations = document.select("ul#list-film-realted li.item").mapNotNull {
|
||||||
val titleHeader = element.select("li.item > p") ?: return null
|
val titleHeader = document.select("p") ?: return@mapNotNull null
|
||||||
val recUrl = fixUrlNull(titleHeader.attr("href")) ?: return null
|
val recUrl = titleHeader.attr("href")) ?: return@mapNotNull null
|
||||||
val recTitle = titleHeader.text() ?: return null
|
val recTitle = titleHeader.text() ?: return@mapNotNull null
|
||||||
val poster = element.select("li.item > .lazyloaded > img").attr("src")
|
val poster = element.select("img").attr("src")
|
||||||
MovieSearchResponse(
|
MovieSearchResponse(
|
||||||
recTitle,
|
recTitle,
|
||||||
recUrl,
|
recUrl,
|
||||||
this.name,
|
this.name,
|
||||||
|
TvType.Movie,
|
||||||
poster
|
poster
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue