mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
sora: fixed Gomovies
This commit is contained in:
parent
bcaa848a33
commit
453e68da55
1 changed files with 13 additions and 7 deletions
|
@ -2492,14 +2492,20 @@ object SoraExtractor : SoraStream() {
|
|||
it.attr("data-year"),
|
||||
it.select("a").attr("href")
|
||||
)
|
||||
}.find {
|
||||
}.let { el ->
|
||||
if(el.size == 1) {
|
||||
el.firstOrNull()
|
||||
} else {
|
||||
el.find {
|
||||
if (season == null) {
|
||||
(it.first.equals(title, true) || it.first.equals(
|
||||
"$title ($year)",
|
||||
true
|
||||
)) && it.second.equals("$year")
|
||||
} else {
|
||||
it.first.equals("$title - Season $season", true) && it.second.equals("$year")
|
||||
it.first.equals("$title - Season $season", true)
|
||||
}
|
||||
}
|
||||
}
|
||||
} ?: return
|
||||
|
||||
|
|
Loading…
Reference in a new issue