trailer and genres fix

This commit is contained in:
Zaw 2022-09-11 00:03:39 +03:00 committed by GitHub
commit 0f575c2219
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()