« get me outta code hell

data: Album.coverArtDimensions ("Cover Art Dimensions") - 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-01-26 10:58:36 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-04-13 15:47:34 -0300
commita8af1e76ec2b0d51d243f68aebf21c64f9f35be6 (patch)
treed65c77a6d7e92aa673c9194f5959ea890f193ebd /src
parent453ce8b4c56262d7271921e6febc4a7f535d4bec (diff)
data: Album.coverArtDimensions ("Cover Art Dimensions")
Diffstat (limited to 'src')
-rw-r--r--src/data/things/album.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index 336d777a..40cd4631 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -92,6 +92,11 @@ export class Album extends Thing {
       simpleString(),
     ],
 
+    coverArtDimensions: [
+      exitWithoutContribs({contribs: 'coverArtistContribs'}),
+      dimensions(),
+    ],
+
     bannerDimensions: [
       exitWithoutContribs({contribs: 'bannerArtistContribs'}),
       dimensions(),
@@ -261,6 +266,11 @@ export class Album extends Thing {
       'Cover Art File Extension': {property: 'coverArtFileExtension'},
       'Track Art File Extension': {property: 'trackCoverArtFileExtension'},
 
+      'Cover Art Dimensions': {
+        property: 'coverArtDimensions',
+        transform: parseDimensions,
+      },
+
       'Wallpaper Artists': {
         property: 'wallpaperArtistContribs',
         transform: parseContributors,