From 18849547f4bed29da0b0ad8b69a74b4c2e83ef43 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 14 Nov 2024 20:11:42 -0400 Subject: data: Referenced Artworks --- src/data/things/track.js | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) (limited to 'src/data/things/track.js') diff --git a/src/data/things/track.js b/src/data/things/track.js index a1740f87..d86c7635 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -352,28 +352,12 @@ export class Track extends Thing { }), ], - referencedTrackArtworks: [ + referencedArtworks: [ exitWithoutUniqueCoverArt({ value: input.value([]), }), - referencedArtworkList({ - class: input.value(Track), - find: input.value(find.track), - data: 'trackData', - }), - ], - - referencedAlbumArtworks: [ - exitWithoutUniqueCoverArt({ - value: input.value([]), - }), - - referencedArtworkList({ - class: input.value(Album), - find: input.value(find.album), - data: 'albumData', - }), + referencedArtworkList(), ], // Update only @@ -540,13 +524,8 @@ export class Track extends Thing { 'Referenced Tracks': {property: 'referencedTracks'}, 'Sampled Tracks': {property: 'sampledTracks'}, - 'Referenced Track Artworks': { - property: 'referencedTrackArtworks', - transform: parseReferencedArtworks, - }, - - 'Referenced Album Artworks': { - property: 'referencedAlbumArtworks', + 'Referenced Artworks': { + property: 'referencedArtworks', transform: parseReferencedArtworks, }, -- cgit 1.3.0-6-gf8a5