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,19 +96,9 @@ class PhimmoichillProvider : MainAPI() {
|
|||
val rating =
|
||||
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 recommendations = document.select("ul#list-film-realted li.item").mapNotNull {
|
||||
val titleHeader = it.select("p") ?: return@mapNotNull null
|
||||
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
|
||||
)
|
||||
}
|
||||
val recommendations = document.select("ul#list-film-realted li.item").map {
|
||||
it.toSearchResult()
|
||||
}
|
||||
|
||||
return if (tvType == TvType.TvSeries) {
|
||||
val docEpisodes = app.get(link).document
|
||||
|
|
Loading…
Reference in a new issue