From 3bf78badacb5e690a00876e6c9da49ea645ff5a2 Mon Sep 17 00:00:00 2001 From: Lazycoder Date: Sat, 10 Sep 2022 20:28:40 +0200 Subject: [PATCH] trailer and genres fix --- .../src/main/kotlin/com/fushaar/FushaarProvider.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FushaarProvider/src/main/kotlin/com/fushaar/FushaarProvider.kt b/FushaarProvider/src/main/kotlin/com/fushaar/FushaarProvider.kt index f10ce88..0073a4c 100644 --- a/FushaarProvider/src/main/kotlin/com/fushaar/FushaarProvider.kt +++ b/FushaarProvider/src/main/kotlin/com/fushaar/FushaarProvider.kt @@ -86,8 +86,8 @@ class Fushaar : MainAPI() { val year = doc.select("header span.yearz").text()?.getIntFromText() val title = doc.select("header h1").text()+" | "+doc.select("header h2").text() val synopsis = doc.select("div.postz").text() - val trailer = doc.select("div.rll-youtube-player iframe").attr("src") - val tags = doc.select("li.iifo").map { it.select("span.z-s-i").text()+" "+it.select("h8").text() } + val trailer = doc.select("#new-stream > div > div.ytb > a").attr("href") + val tags = doc.select("div.zoomInUp a").map{it.text()}//doc.select("li.iifo").map { it.select("span.z-s-i").text()+" "+it.select("h8").text() } val rating = doc.select("body > div.new-info.hide-mobile > div > div.z-imdb > div").text()?.toRatingInt() val recommendations = doc.select("article.poster").mapNotNull { element -> element.toSearchResponse()