search: match file names case-insensitively
Not doing this lead to some inconsistent search results at points. Resolves #437.
This commit is contained in:
parent
c7b875376c
commit
b72f33a989
2 changed files with 6 additions and 2 deletions
|
@ -2,9 +2,14 @@
|
|||
|
||||
## dev
|
||||
|
||||
#### What's Improved
|
||||
- Sorting now handles numbers of arbitrary length
|
||||
- Punctuation is now ignored in sorting with intelligent sort names disabled
|
||||
|
||||
#### What's Fixed
|
||||
- Fixed issue where vorbis comments in the form of `metadata_block_picture` (lowercase) would not
|
||||
be parsed as images
|
||||
- Fixed issue where searches would match song file names case-sensitively
|
||||
|
||||
## 3.0.5
|
||||
|
||||
|
|
|
@ -66,8 +66,7 @@ class SearchEngineImpl @Inject constructor(@ApplicationContext private val conte
|
|||
SearchEngine.Items(
|
||||
songs =
|
||||
items.songs?.searchListImpl(query) { q, song ->
|
||||
// FIXME: Match case-insensitively
|
||||
song.path.name.contains(q)
|
||||
song.path.name.contains(q, ignoreCase = true)
|
||||
},
|
||||
albums = items.albums?.searchListImpl(query),
|
||||
artists = items.artists?.searchListImpl(query),
|
||||
|
|
Loading…
Reference in a new issue