« get me outta code hell

search: disable gif artworks for now - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-06 17:39:25 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-31 12:11:51 -0300
commit38221c13f3938e192ee8185137851fda5c276128 (patch)
tree40aecd9c7bebe483fa7005bfb833889509c08f5e /src
parent0dd27ef9bbe41370d859ae48dcecd5c87303d567 (diff)
search: disable gif artworks for now
Diffstat (limited to 'src')
-rw-r--r--src/util/search-spec.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/search-spec.js b/src/util/search-spec.js
index 2cdbffa7..de71776c 100644
--- a/src/util/search-spec.js
+++ b/src/util/search-spec.js
@@ -4,8 +4,12 @@ function prepareArtwork(thing) {
   switch (thing.constructor[Symbol.for('Thing.referenceType')]) {
     case 'track': {
       if (thing.hasUniqueCoverArt) {
+        if (thing.coverArtFileExtension === 'gif')
+          return undefined;
         return ['track', thing.album.directory];
       } else if (thing.album.hasCoverArt) {
+        if (thing.album.coverArtFileExtension === 'gif')
+          return undefined;
         return ['track-album', thing.album.directory];
       } else {
         return undefined;