« get me outta code hell

inherit album color in no-fg groups - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2020-10-29 12:04:16 -0300
committer(quasar) nebula <towerofnix@gmail.com>2020-10-29 12:04:16 -0300
commit27a4e25b190054d092fe1adf1081877aa35529b0 (patch)
tree00b58176e40fee5eba1b0c9961d6ad30f0d5e791 /upd8.js
parentcb8a7a7d06499ffef855f372d5722953bc48e0ed (diff)
inherit album color in no-fg groups
Diffstat (limited to 'upd8.js')
-rw-r--r--upd8.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js
index fae08026..6dc80028 100644
--- a/upd8.js
+++ b/upd8.js
@@ -525,7 +525,7 @@ async function processAlbumDataFile(file) {
         const groupName = getBasicField(section, 'Group');
         if (groupName) {
             group = groupName;
-            groupColor = getBasicField(section, 'FG');
+            groupColor = getBasicField(section, 'FG') || album.color;
             album.usesGroups = true;
             continue;
         }