uaflix: Fix compilation
This commit is contained in:
parent
d5a7e55803
commit
b253439b20
2 changed files with 5 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
|||
// use an integer for version numbers
|
||||
version = 4
|
||||
version = 5
|
||||
|
||||
dependencies {
|
||||
implementation("com.google.code.gson:gson:2.9.0")
|
||||
implementation("com.google.code.gson:gson:2.10.1")
|
||||
}
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -122,9 +122,9 @@ class UAFlixProvider : MainAPI() {
|
|||
document.select(".fcols4 .finfo li").forEach { menu ->
|
||||
with(menu){
|
||||
when{
|
||||
this.selectFirst("span").text() == "Жанр:" -> menu.select("span[itemprop=genre]").map { tags.add(it.text()) }
|
||||
this.selectFirst("span").text() == "В ролях:" -> menu.select("span[itemprop=actor]").map { actors.add(it.text()) }
|
||||
this.selectFirst("span").text() == "Рік виходу:" -> year = menu.select(".year").text().toIntOrNull()
|
||||
this.select("span")[0].text() == "Жанр:" -> menu.select("span[itemprop=genre]").map { tags.add(it.text()) }
|
||||
this.select("span")[0].text() == "В ролях:" -> menu.select("span[itemprop=actor]").map { actors.add(it.text()) }
|
||||
this.select("span")[0].text() == "Рік виходу:" -> year = menu.select(".year").text().toIntOrNull()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue