From 05a176b1b556dc78ca3bf819a4bd0d073bc23cad Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 12 Feb 2026 16:54:09 -0400 Subject: search, client: handle singles --- src/search-select.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/search-select.js') diff --git a/src/search-select.js b/src/search-select.js index 4470c463..a7dcf81a 100644 --- a/src/search-select.js +++ b/src/search-select.js @@ -200,6 +200,15 @@ function genericProcess(thing, opts) { : thing.isFlash ? thing.act.name : null); + fields.classification = + (thing.isAlbum ? thing.style + : thing.isTrack ? + (thing.album.style === 'single' && + thing === thing.album.tracks[0] + ? 'single' + : 'track') + : null); + fields.disambiguator = fields.parentName; -- cgit 1.3.0-6-gf8a5