using ignorecase check instead for LibraryItem

This commit is contained in:
Jays2Kings 2021-04-18 23:55:14 -04:00
parent a7e000d159
commit 4462e75ccd

View File

@ -165,11 +165,11 @@ class LibraryItem(
if (tag.trim().isEmpty()) return true
return if (tag.startsWith("-")) {
genres?.find {
it.trim().toLowerCase() == tag.substringAfter("-").toLowerCase()
it.trim().equals(tag.substringAfter("-"), ignoreCase = true)
} == null
} else {
genres?.find {
it.trim().toLowerCase() == tag.toLowerCase()
it.trim().equals(tag, ignoreCase = true)
} != null
}
}