Update PhimmoichillProvider.kt

This commit is contained in:
tuan041 2022-09-03 22:13:25 +07:00 committed by GitHub
parent fb1961d465
commit c1264c4572
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ class PhimmoichillProvider : MainAPI() {
.toIntOrNull()
val tvType = if (document.select("div.latest-episode").isNotEmpty()
) TvType.TvSeries else TvType.Movie
val description = document.select("div#film-content[itemprop=author]").text().trim()
val description = document.select("div#film-content").text().trim()
val trailer =
document.select("div#trailer script").last()?.data()?.substringAfter("file: \"")
?.substringBefore("\",")
@ -100,12 +100,11 @@ class PhimmoichillProvider : MainAPI() {
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("data-src")
val poster = titleHeader.select("img.lazyloaded").attr("src")
MovieSearchResponse(
recTitle,
recUrl,
this.name,
TvType.Movie,
poster
)
}