Merge branch 'hexated:master' into master

This commit is contained in:
b4byhuey 2023-02-20 20:54:43 +08:00 committed by GitHub
commit 150677f306
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2492,14 +2492,20 @@ object SoraExtractor : SoraStream() {
it.attr("data-year"), it.attr("data-year"),
it.select("a").attr("href") it.select("a").attr("href")
) )
}.find { }.let { el ->
if (season == null) { if(el.size == 1) {
(it.first.equals(title, true) || it.first.equals( el.firstOrNull()
"$title ($year)",
true
)) && it.second.equals("$year")
} else { } else {
it.first.equals("$title - Season $season", true) && it.second.equals("$year") 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)
}
}
} }
} ?: return } ?: return