uakino: Fix rating and added eng title
This commit is contained in:
parent
a709aa7c28
commit
0e983d651f
2 changed files with 11 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 7
|
version = 8
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -93,6 +93,7 @@ class UakinoProvider : MainAPI() {
|
||||||
|
|
||||||
// Parse info
|
// Parse info
|
||||||
val title = document.selectFirst("h1 span.solototle")?.text()?.trim().toString()
|
val title = document.selectFirst("h1 span.solototle")?.text()?.trim().toString()
|
||||||
|
val engTitle = document.selectFirst("h1 span.solototle")?.text()?.trim().toString()
|
||||||
val poster = fixUrl(document.selectFirst("div.film-poster img")?.attr("src").toString())
|
val poster = fixUrl(document.selectFirst("div.film-poster img")?.attr("src").toString())
|
||||||
|
|
||||||
var tags = emptyList<String>()
|
var tags = emptyList<String>()
|
||||||
|
@ -106,12 +107,13 @@ class UakinoProvider : MainAPI() {
|
||||||
contains("Рік виходу:") -> year = metadata.select(".fi-desc").text().toInt()
|
contains("Рік виходу:") -> year = metadata.select(".fi-desc").text().toInt()
|
||||||
contains("Жанр:") -> tags = metadata.select(".fi-desc").text().split(" , ")
|
contains("Жанр:") -> tags = metadata.select(".fi-desc").text().split(" , ")
|
||||||
contains("Актори:") -> actors = metadata.select(".fi-desc").text().split(", ")
|
contains("Актори:") -> actors = metadata.select(".fi-desc").text().split(", ")
|
||||||
contains("") ->
|
contains("") -> {
|
||||||
rating =
|
if (!metadata.select(".fi-label").select("img").isEmpty()){
|
||||||
metadata.select(".fi-desc").text().substringBefore("/").toRatingInt()
|
rating = metadata.select(".fi-desc").text().substringBefore("/").toRatingInt()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Log.d("CakesTwix-Debug", this)
|
// Log.d("CakesTwix-Debug", metadata.select(".fi-desc").text().substringBefore("/"))
|
||||||
// Log.d("CakesTwix-Debug", metadata.select(".fi-desc").text())
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -173,13 +175,15 @@ class UakinoProvider : MainAPI() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
newTvSeriesLoadResponse(title, url, tvType, episodes.distinctBy { it.name }) {
|
newAnimeLoadResponse(title, url, tvType) {
|
||||||
this.posterUrl = poster
|
this.posterUrl = poster
|
||||||
|
this.engName = engTitle
|
||||||
this.year = year
|
this.year = year
|
||||||
this.plot = description
|
this.plot = description
|
||||||
this.tags = tags
|
this.tags = tags
|
||||||
this.rating = rating
|
this.rating = rating
|
||||||
addActors(actors)
|
addActors(actors)
|
||||||
|
addEpisodes(DubStatus.None, episodes.distinctBy { it.name })
|
||||||
this.recommendations = recommendations
|
this.recommendations = recommendations
|
||||||
addTrailer(trailer)
|
addTrailer(trailer)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue