From 913f418eadb0b085c805ff1c83b749a0ce620741 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 14 Nov 2024 07:37:14 -0400 Subject: data: annotated artwork references Not used on-site, but this is all coded internally. --- src/data/checks.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/data/checks.js') diff --git a/src/data/checks.js b/src/data/checks.js index da7b228c..8c8e7a5d 100644 --- a/src/data/checks.js +++ b/src/data/checks.js @@ -183,8 +183,8 @@ export function filterReferenceErrors(wikiData, { bannerArtistContribs: '_contrib', groups: 'group', artTags: '_artTag', - referencedTrackArtworks: 'track', - referencedAlbumArtworks: 'album', + referencedTrackArtworks: '_trackArtwork', + referencedAlbumArtworks: '_albumArtwork', commentary: '_commentary', }], @@ -221,8 +221,8 @@ export function filterReferenceErrors(wikiData, { referencedTracks: '_trackNotRerelease', sampledTracks: '_trackNotRerelease', artTags: '_artTag', - referencedTrackArtworks: 'track', - referencedAlbumArtworks: 'album', + referencedTrackArtworks: '_trackArtwork', + referencedAlbumArtworks: '_albumArtwork', originalReleaseTrack: '_trackNotRerelease', commentary: '_commentary', }], @@ -289,6 +289,10 @@ export function filterReferenceErrors(wikiData, { let findFn; switch (findFnKey) { + case '_albumArtwork': + findFn = ref => boundFind.album(ref.reference); + break; + case '_artTag': findFn = boundFind.artTag; break; @@ -315,6 +319,10 @@ export function filterReferenceErrors(wikiData, { findFn = boundFind.album; break; + case '_trackArtwork': + findFn = ref => boundFind.track(ref.reference); + break; + case '_trackNotRerelease': findFn = trackRef => { const track = boundFind.track(trackRef); -- cgit 1.3.0-6-gf8a5