trailer and genres fix

This commit is contained in:
Lazycoder 2022-09-10 20:28:40 +02:00 committed by GitHub
parent c1487101c5
commit 3bf78badac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()