« get me outta code hell

restore support for Jiff - 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 <towerofnix@gmail.com>2021-09-01 10:12:44 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-09-01 10:12:44 -0300
commit823db2b96a24ee3f4b16edde9c6ab2138a4f5894 (patch)
tree2012b6628497021458a40e78c6129f37bb1370ad /src
parent1dba85f7db7f221bb285012a25f37193724b19d6 (diff)
restore support for Jiff
Diffstat (limited to 'src')
-rw-r--r--src/url-spec.js3
-rw-r--r--src/util/wiki-data.js4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/url-spec.js b/src/url-spec.js
index 22b3bc8b..a36bb0ee 100644
--- a/src/url-spec.js
+++ b/src/url-spec.js
@@ -75,7 +75,8 @@ const urlSpec = {
             albumBanner: 'album-art/<>/banner.jpg',
             trackCover: 'album-art/<>/<>.jpg',
             artistAvatar: 'artist-avatar/<>.jpg',
-            flashArt: 'flash-art/<>.jpg'
+            flashArt: 'flash-art/<>.jpg',
+            flashArtGif: 'flash-art/<>.gif' // Hack! Sorry not sorry. ::::)
         }
     }
 };
diff --git a/src/util/wiki-data.js b/src/util/wiki-data.js
index 3f24e6a7..2f705f91 100644
--- a/src/util/wiki-data.js
+++ b/src/util/wiki-data.js
@@ -143,7 +143,9 @@ export function getArtistCommentary(artist, {justEverythingMan}) {
 }
 
 export function getFlashCover(flash, {to}) {
-    return to('media.flashArt', flash.directory);
+    return (flash.jiff
+        ? to('media.flashArtGif', flash.directory)
+        : to('media.flashArt', flash.directory));
 }
 
 export function getFlashLink(flash) {