« get me outta code hell

data: track: inherit lyrics from original release - 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-02-06 14:41:28 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-06 14:41:28 -0400
commit6bbe25371fdf5ee42e988e03ac94745826c88d35 (patch)
tree3b754f4cdd95722643f9e127de39f7f77c244afd /src
parentddc3465fb48c540360fba977a59be9a5a3a49c04 (diff)
data: track: inherit lyrics from original release
Diffstat (limited to 'src')
-rw-r--r--src/data/things/track.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 91ef724e..d4ce7790 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -155,7 +155,14 @@ export class Track extends Thing {
     ],
 
     commentary: commentary(),
-    lyrics: contentString(),
+
+    lyrics: [
+      inheritFromOriginalRelease({
+        property: input.value('lyrics'),
+      }),
+
+      contentString(),
+    ],
 
     additionalFiles: additionalFiles(),
     sheetMusicFiles: additionalFiles(),
@@ -444,6 +451,11 @@ export class Track extends Thing {
         'Contributors',
       ]},
 
+      {message: `Re-releases inherit lyrics from the original`, fields: [
+        'Originally Released As',
+        'Lyrics',
+      ]},
+
       {
         message: ({'Has Cover Art': hasCoverArt}) =>
           (hasCoverArt