remove parenthesis

This commit is contained in:
Blatzar 2023-02-08 10:20:48 +01:00
parent b08608d31a
commit 58763708f7

View file

@ -183,9 +183,9 @@ object APIHolder {
.parsedSafe<AniSearch>()?.results?.find { media ->
val matchingYears = year == null || media.releaseDate == year
val matchingTitles =
(media.title?.isMatchingTitles(mainTitle) == true || media.title?.isMatchingTitles(
media.title?.isMatchingTitles(mainTitle) == true || media.title?.isMatchingTitles(
secondaryTitle
) == true)
) == true
val matchingTypes = types?.any { it.name.equals(media.type, true) } == true
matchingTitles && matchingTypes && matchingYears