mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
Update PhimmoichillProvider.kt (#14)
This commit is contained in:
parent
2cdff514e4
commit
b0905c3c68
1 changed files with 3 additions and 13 deletions
|
@ -96,18 +96,8 @@ class PhimmoichillProvider : MainAPI() {
|
||||||
val rating =
|
val rating =
|
||||||
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").map {
|
||||||
val titleHeader = it.select("p") ?: return@mapNotNull null
|
it.toSearchResult()
|
||||||
val recUrl = titleHeader.attr("href") ?: return@mapNotNull null
|
|
||||||
val recTitle = titleHeader.text() ?: return@mapNotNull null
|
|
||||||
val poster = it.select("img").attr("src")
|
|
||||||
MovieSearchResponse(
|
|
||||||
recTitle,
|
|
||||||
recUrl,
|
|
||||||
this.name,
|
|
||||||
TvType.Movie,
|
|
||||||
poster
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return if (tvType == TvType.TvSeries) {
|
return if (tvType == TvType.TvSeries) {
|
||||||
|
|
Loading…
Reference in a new issue