Update PhimmoichillProvider.kt

This commit is contained in:
tuan041 2022-09-03 18:01:14 +07:00 committed by GitHub
parent 2cdff514e4
commit fb1961d465
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").text().trim()
val description = document.select("div#film-content[itemprop=author]").text().trim()
val trailer =
document.select("div#trailer script").last()?.data()?.substringAfter("file: \"")
?.substringBefore("\",")
@ -100,7 +100,7 @@ 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("src")
val poster = it.select("img").attr("data-src")
MovieSearchResponse(
recTitle,
recUrl,