« get me outta code hell

search, client: handle singles - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/search-select.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-02-12 16:54:09 -0400
committer(quasar) nebula <qznebula@protonmail.com>2026-02-12 16:58:12 -0400
commit05a176b1b556dc78ca3bf819a4bd0d073bc23cad (patch)
tree5a97fe8b3b532f699b90d166a0959d5bf6a15023 /src/search-select.js
parentafe80f393d1569ba22f03941e808a66ddcd69e77 (diff)
search, client: handle singles
Diffstat (limited to 'src/search-select.js')
-rw-r--r--src/search-select.js9
1 files changed, 9 insertions, 0 deletions
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;