diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-14 07:37:14 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-14 07:37:14 -0400 |
commit | 913f418eadb0b085c805ff1c83b749a0ce620741 (patch) | |
tree | 6d369056d724552ac5191930ae87c05b93ee64fc /src/data/things/album.js | |
parent | db0fd78ca60fc695f87d1f3adf53967bdae2796f (diff) |
data: annotated artwork references
Not used on-site, but this is all coded internally.
Diffstat (limited to 'src/data/things/album.js')
-rw-r--r-- | src/data/things/album.js | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js index 539f4fb1..b8009063 100644 --- a/src/data/things/album.js +++ b/src/data/things/album.js @@ -19,6 +19,7 @@ import { parseContributors, parseDate, parseDimensions, + parseReferencedArtworks, } from '#yaml'; import {exitWithoutDependency, exposeDependency, exposeUpdateValueOrContinue} @@ -46,6 +47,7 @@ import { fileExtension, flag, name, + referencedArtworkList, referenceList, simpleDate, simpleString, @@ -223,7 +225,7 @@ export class Album extends Thing { value: input.value([]), }), - referenceList({ + referencedArtworkList({ class: input.value(Track), find: input.value(find.track), data: 'trackData', @@ -236,7 +238,7 @@ export class Album extends Thing { value: input.value([]), }), - referenceList({ + referencedArtworkList({ class: input.value(Album), find: input.value(find.album), data: 'albumData', @@ -410,8 +412,15 @@ export class Album extends Thing { transform: parseAdditionalFiles, }, - 'Referenced Track Artworks': {property: 'referencedTrackArtworks'}, - 'Referenced Album Artworks': {property: 'referencedAlbumArtworks'}, + 'Referenced Track Artworks': { + property: 'referencedTrackArtworks', + transform: parseReferencedArtworks, + }, + + 'Referenced Album Artworks': { + property: 'referencedAlbumArtworks', + transform: parseReferencedArtworks, + }, 'Franchises': {ignore: true}, |