uaflix: Fix compilation

This commit is contained in:
CakesTwix 2025-01-13 20:59:56 +02:00
parent d5a7e55803
commit b253439b20
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825
2 changed files with 5 additions and 5 deletions

View file

@ -1,8 +1,8 @@
// use an integer for version numbers // use an integer for version numbers
version = 4 version = 5
dependencies { dependencies {
implementation("com.google.code.gson:gson:2.9.0") implementation("com.google.code.gson:gson:2.10.1")
} }
cloudstream { cloudstream {

View file

@ -122,9 +122,9 @@ class UAFlixProvider : MainAPI() {
document.select(".fcols4 .finfo li").forEach { menu -> document.select(".fcols4 .finfo li").forEach { menu ->
with(menu){ with(menu){
when{ when{
this.selectFirst("span").text() == "Жанр:" -> menu.select("span[itemprop=genre]").map { tags.add(it.text()) } this.select("span")[0].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.select("span")[0].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() == "Рік виходу:" -> year = menu.select(".year").text().toIntOrNull()
} }
} }
} }