« get me outta code hell

data: set artistProperty on forwards contribution lists - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/album.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-17 21:14:26 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:14 -0300
commit17987a50e7cbc03561bba87436ef5bbb15e98cee (patch)
tree3a622436fd4213610391f3d6dc67e48a2056d7de /src/data/things/album.js
parentc6713a38edf084c27a6c58457bf26a23247714ef (diff)
data: set artistProperty on forwards contribution lists
Diffstat (limited to 'src/data/things/album.js')
-rw-r--r--src/data/things/album.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index ae5226ba..a0021946 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -142,6 +142,7 @@ export class Album extends Thing {
 
     artistContribs: contributionList({
       date: 'date',
+      artistProperty: input.value('albumArtistContributions'),
     }),
 
     coverArtistContribs: [
@@ -151,6 +152,7 @@ export class Album extends Thing {
 
       contributionList({
         date: '#coverArtDate',
+        artistProperty: input.value('albumCoverArtistContributions'),
       }),
     ],
 
@@ -158,6 +160,10 @@ export class Album extends Thing {
       // May be null, indicating cover art was added for tracks on the date
       // each track specifies, or else the track's own release date.
       date: 'trackArtDate',
+
+      // This is the "correct" value, but it gets overwritten - with the same
+      // value - regardless.
+      artistProperty: input.value('trackCoverArtistContributions'),
     }),
 
     wallpaperArtistContribs: [
@@ -167,6 +173,7 @@ export class Album extends Thing {
 
       contributionList({
         date: '#coverArtDate',
+        artistProperty: input.value('albumWallpaperArtistContributions'),
       }),
     ],
 
@@ -177,6 +184,7 @@ export class Album extends Thing {
 
       contributionList({
         date: '#coverArtDate',
+        artistProperty: input.value('albumBannerArtistContributions'),
       }),
     ],