diff options
Diffstat (limited to 'src/data/things/album.js')
-rw-r--r-- | src/data/things/album.js | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js index 82f155b4..e17304d0 100644 --- a/src/data/things/album.js +++ b/src/data/things/album.js @@ -12,8 +12,14 @@ import {sortAlbumsTracksChronologically, sortChronologically} from '#sort'; import {accumulateSum, empty} from '#sugar'; import Thing from '#thing'; import {isColor, isDate, validateWikiData} from '#validators'; -import {parseAdditionalFiles, parseContributors, parseDate, parseDimensions} - from '#yaml'; + +import { + parseAdditionalFiles, + parseAdditionalNames, + parseContributors, + parseDate, + parseDimensions, +} from '#yaml'; import {exitWithoutDependency, exposeDependency, exposeUpdateValueOrContinue} from '#composite/control-flow'; @@ -28,6 +34,7 @@ import { import { additionalFiles, + additionalNameList, commentary, color, commentatorArtists, @@ -72,6 +79,8 @@ export class Album extends Thing { alwaysReferenceTracksByDirectory: flag(false), + additionalNames: additionalNameList(), + bandcampAlbumIdentifier: simpleString(), bandcampArtworkIdentifier: simpleString(), @@ -296,6 +305,11 @@ export class Album extends Thing { property: 'alwaysReferenceTracksByDirectory', }, + 'Additional Names': { + property: 'additionalNames', + transform: parseAdditionalNames, + }, + 'Bandcamp Album ID': { property: 'bandcampAlbumIdentifier', transform: String, |