From 0376eca756c9a11aa2abbe8db1bbd688bba4af0b Mon Sep 17 00:00:00 2001 From: tuan041 <30403510+tuan041@users.noreply.github.com> Date: Sat, 3 Sep 2022 16:13:51 +0700 Subject: [PATCH] Update PhimmoichillProvider.kt --- .../main/kotlin/com/lagradost/PhimmoichillProvider.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/PhimmoichillProvider/src/main/kotlin/com/lagradost/PhimmoichillProvider.kt b/PhimmoichillProvider/src/main/kotlin/com/lagradost/PhimmoichillProvider.kt index 22bf201..3092de7 100644 --- a/PhimmoichillProvider/src/main/kotlin/com/lagradost/PhimmoichillProvider.kt +++ b/PhimmoichillProvider/src/main/kotlin/com/lagradost/PhimmoichillProvider.kt @@ -97,14 +97,15 @@ class PhimmoichillProvider : MainAPI() { 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 = element.select("li.item > p") ?: return null - val recUrl = fixUrlNull(titleHeader.attr("href")) ?: return null - val recTitle = titleHeader.text() ?: return null - val poster = element.select("li.item > .lazyloaded > img").attr("src") + val titleHeader = document.select("p") ?: return@mapNotNull null + val recUrl = titleHeader.attr("href")) ?: return@mapNotNull null + val recTitle = titleHeader.text() ?: return@mapNotNull null + val poster = element.select("img").attr("src") MovieSearchResponse( recTitle, recUrl, this.name, + TvType.Movie, poster ) }