ufdub: fix recommendations

This commit is contained in:
CakesTwix 2023-08-07 23:42:08 +03:00
parent 4052315c08
commit 58039ee6d0
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825
2 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 3
version = 4
cloudstream {

View file

@ -90,8 +90,10 @@ class UFDubProvider : MainAPI() {
// val author = someInfo.select("strong:contains(Студія:)").next().html()
val rating = toRatingInt(document.select(".fp-rate"))
val recommendations = document.select(".horizontal ul").map {
it.toSearchResponse()
val recommendations = document.select(".rel").map {
newMovieSearchResponse(it.select(".img-box img").attr("alt"), it.attr("href"), TvType.Anime) {
this.posterUrl = "$mainUrl${it.select(".img-box img").attr("src")}"
}
}
someInfo.select(".full-info div.fi-col-item")