small fix

This commit is contained in:
hexated 2023-02-26 17:52:19 +07:00
parent 12f0f4147e
commit 2564094d6a

View file

@ -485,7 +485,7 @@ suspend fun getSoraIdAndType(title: String?, year: Int?, season: Int?) : Pair<St
) && (it.second == year || it.first.contains("Season $season", true))
}
else -> {
it.first.contains(Regex("(?i)$title\\s?($season|${season.toRomanNumeral()}|Season\\s$season)")) && it.second == year
(it.first.contains(Regex("(?i)$title\\s?($season|${season.toRomanNumeral()}|Season\\s$season)")) || it.first.equals(title, true)) && it.second == year
}
}
}