diff options
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/things/thing.js | 4 | ||||
-rw-r--r-- | src/data/things/track.js | 2 | ||||
-rw-r--r-- | src/data/yaml.js | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/src/data/things/thing.js b/src/data/things/thing.js index b9fa60c6..5ab15c0e 100644 --- a/src/data/things/thing.js +++ b/src/data/things/thing.js @@ -148,6 +148,10 @@ export default class Thing extends CacheableObject { additionalFiles: () => ({ flags: {update: true, expose: true}, update: {validate: isAdditionalFileList}, + expose: { + transform: (additionalFiles) => + additionalFiles ?? [], + }, }), // A reference list! Keep in mind this is for general references to wiki diff --git a/src/data/things/track.js b/src/data/things/track.js index 6b1e958b..aecc876f 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -98,6 +98,8 @@ export class Track extends Thing { commentary: Thing.common.commentary(), lyrics: Thing.common.simpleString(), additionalFiles: Thing.common.additionalFiles(), + sheetMusicFiles: Thing.common.additionalFiles(), + midiProjectFiles: Thing.common.additionalFiles(), // Update only diff --git a/src/data/yaml.js b/src/data/yaml.js index 9c3a4b88..01cb5501 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -251,6 +251,8 @@ export const processTrackDocument = makeProcessDocument(T.Track, { 'Cover Artists': parseContributors, 'Additional Files': parseAdditionalFiles, + 'Sheet Music Files': parseAdditionalFiles, + 'MIDI Project Files': parseAdditionalFiles, }, propertyFieldMapping: { @@ -278,6 +280,8 @@ export const processTrackDocument = makeProcessDocument(T.Track, { lyrics: 'Lyrics', additionalFiles: 'Additional Files', + sheetMusicFiles: 'Sheet Music Files', + midiProjectFiles: 'MIDI Project Files', }, }); |