uakino: fix recommendations
This commit is contained in:
parent
2aa931b0f6
commit
e7a3c3f67f
1 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
||||||
package com.lagradost
|
package com.lagradost
|
||||||
|
|
||||||
|
import android.util.Log
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addActors
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
||||||
|
@ -45,8 +46,8 @@ class UakinoProvider : MainAPI() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun Element.toSearchResponse(): SearchResponse {
|
private fun Element.toSearchResponse(): SearchResponse {
|
||||||
val title = this.selectFirst("a.movie-title")?.text()?.trim().toString()
|
val title = this.selectFirst("a.movie-title, div.full-movie-title")?.text()?.trim().toString()
|
||||||
val href = this.selectFirst("a.movie-title")?.attr("href").toString()
|
val href = this.selectFirst("a.movie-title, a.full-movie")?.attr("href").toString()
|
||||||
val posterUrl = fixUrlNull(this.selectFirst("img")?.attr("src"))
|
val posterUrl = fixUrlNull(this.selectFirst("img")?.attr("src"))
|
||||||
return newMovieSearchResponse(title, href, TvType.Movie) {
|
return newMovieSearchResponse(title, href, TvType.Movie) {
|
||||||
this.posterUrl = posterUrl
|
this.posterUrl = posterUrl
|
||||||
|
@ -87,7 +88,8 @@ class UakinoProvider : MainAPI() {
|
||||||
?.substringBefore("/").toRatingInt()
|
?.substringBefore("/").toRatingInt()
|
||||||
val actors = document.select("div.film-info > div:nth-child(6) a").map { it.text() }
|
val actors = document.select("div.film-info > div:nth-child(6) a").map { it.text() }
|
||||||
|
|
||||||
val recommendations = document.select("div#full-slides div.owl-item").map {
|
val recommendations = document.select(".related-item").map {
|
||||||
|
Log.d("load-debug", it.html())
|
||||||
it.toSearchResponse()
|
it.toSearchResponse()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue