From 40be502a98ac0f4c8998d383824d1ec1a5bc4e3c Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Fri, 13 Feb 2026 08:53:19 -0800 Subject: [PATCH] Enhanced search: separate albums from singles/EPs and improve UX Split the enhanced search dropdown into distinct Albums and Singles & EPs sections using the album_type field. Changed the zero-tracks error from a cryptic red error toast to a clear warning message. Fixed the loading text to show the actual music source name instead of hardcoded "Spotify". --- web_server.py | 3 ++- webui/index.html | 12 +++++++++++- webui/static/script.js | 34 ++++++++++++++++++++++++++++++---- 3 files changed, 43 insertions(+), 6 deletions(-) diff --git a/web_server.py b/web_server.py index 0f280ee4..6f8fcf5b 100644 --- a/web_server.py +++ b/web_server.py @@ -3718,7 +3718,8 @@ def enhanced_search(): "artist": artist_name, "image_url": album.image_url, "release_date": album.release_date, - "total_tracks": album.total_tracks + "total_tracks": album.total_tracks, + "album_type": album.album_type }) # Search for tracks diff --git a/webui/index.html b/webui/index.html index 6765249c..5d1e5daf 100644 --- a/webui/index.html +++ b/webui/index.html @@ -1431,7 +1431,7 @@ @@ -1480,6 +1480,16 @@
+ + +