mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Search now includes comments
This commit is contained in:
1 parent
c8b86100f0
commit
9f79f5a849
4 files changed
+11
-2
No files matched your search
@@ -40,7 +40,7 @@ function applyFilters(tracks: Track[], f: Filters): Track[] {
|
||||
const bpmMax = f.bpmMax ? parseFloat(f.bpmMax) : null
|
||||
return tracks.filter((t) => {
|
||||
if (q) {
|
||||
const hay = `${t.artist ?? ''} ${t.title ?? ''} ${t.album ?? ''}`.toLowerCase()
|
||||
const hay = [t.artist, t.title, t.album, t.comment, t.comment2].filter(Boolean).join(' ').toLowerCase()
|
||||
if (!hay.includes(q)) return false
|
||||
}
|
||||
if (f.genre && t.genre !== f.genre) return false
|
||||
|
||||
Reference in new issue
Block a user