« get me outta code hell

search, client: album results - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util/search-spec.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-13 09:43:30 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-31 12:11:52 -0300
commit3a1aa3d7232ba24725b1b9215c296747bb8b242c (patch)
treef67e10d5416f2a493f67d4d61f55394a15bb5d10 /src/util/search-spec.js
parent8019e8957ebd94bd53bf35002c24aa2dcdbe65c5 (diff)
search, client: album results
Diffstat (limited to 'src/util/search-spec.js')
-rw-r--r--src/util/search-spec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/search-spec.js b/src/util/search-spec.js
index 5aba2194..f9d2a035 100644
--- a/src/util/search-spec.js
+++ b/src/util/search-spec.js
@@ -2,6 +2,14 @@
 
 function getArtworkPath(thing) {
   switch (thing.constructor[Symbol.for('Thing.referenceType')]) {
+    case 'album': {
+      return [
+        'media.albumCover',
+        thing.directory,
+        thing.coverArtFileExtension,
+      ];
+    }
+
     case 'flash': {
       return [
         'media.flashArt',