Limit search functionality to album name and artist only

- Removed description and info fields from search to improve relevance
- Search now only matches against Artist and Album fields
- Faster and more focused search results
- Prevents overwhelming results from description text matches

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Johan Lundberg 2025-07-01 00:58:11 +02:00
parent 016e6d9a40
commit 42374fa016

View file

@ -215,8 +215,7 @@ function handleSearch(event) {
} else {
filteredData = albumsData.filter(album =>
album.Artist.toLowerCase().includes(query) ||
album.Album.toLowerCase().includes(query) ||
(album.Description && album.Description.toLowerCase().includes(query))
album.Album.toLowerCase().includes(query)
);
}