modify akwam desc selector (#468)

This commit is contained in:
Red 2022-01-16 20:29:04 +00:00 committed by GitHub
parent fd6eee635f
commit 487fa53b81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ class AkwamProvider : MainAPI() {
it.text().contains("مدة الفيلم") it.text().contains("مدة الفيلم")
}?.text()?.getIntFromText() }?.text()?.getIntFromText()
val synopsis = doc.select("div.widget-body p").text() val synopsis = doc.select("div.widget-body p:first-child").text()
val rating = doc.select("span.mx-2").text().split("/").lastOrNull()?.replace(" ", "") val rating = doc.select("span.mx-2").text().split("/").lastOrNull()?.replace(" ", "")
?.toDoubleOrNull() ?.toDoubleOrNull()