diff options
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 |
commit | 38221c13f3938e192ee8185137851fda5c276128 (patch) | |
tree | 40aecd9c7bebe483fa7005bfb833889509c08f5e /src/util/search-spec.js | |
parent | 0dd27ef9bbe41370d859ae48dcecd5c87303d567 (diff) |
search: disable gif artworks for now
Diffstat (limited to 'src/util/search-spec.js')
-rw-r--r-- | src/util/search-spec.js | 4 |
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; |