« get me outta code hell

brb gonna make these into one file now - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-02-12 15:27:14 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-02-12 15:27:14 -0400
commitcfa02cb03a363c46408db7f0ec54bd3a7e4ad018 (patch)
tree9dbd2f26cc200838717404163037953924f3e194 /src/upd8.js
parentf028105cbb268af2c3039215557ed6f531c688d4 (diff)
brb gonna make these into one file now
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/upd8.js b/src/upd8.js
index e82dff7..2aa4eb2 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -2750,6 +2750,7 @@ async function main() {
     // result (many of which are required for page HTML generation).
 
     for (const album of WD.albumData) {
+        album.artistData = WD.artistData;
         album.trackData = WD.trackData;
 
         for (const trackGroup of album.trackGroups) {
@@ -2759,6 +2760,7 @@ async function main() {
 
     for (const track of WD.trackData) {
         track.albumData = WD.albumData;
+        track.artistData = WD.artistData;
         track.artTagData = WD.artTagData;
     }
 
@@ -2771,6 +2773,11 @@ async function main() {
 
     console.log(WD.trackData[0].name, WD.trackData[0].album.name);
     console.log(WD.albumData[0].name, WD.albumData[0].tracks[0].name);
+    console.log(WD.trackData[0].artistContribs[0].who.name);
+    console.log(
+        (WD.albumData
+            .find(album => album.name === 'Alternia')
+            .artistContribs[0].who.name));
 
     return;