From 33f069d8997c494a97f9f6b2dd5651f5bc957d79 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 19 Nov 2024 14:05:14 -0400 Subject: content: generate{Album,Flash,Track}CoverArtwork: mode slot Passthrough. This maintains the interface previously used for all cover artworks and therefore obliterates surrounding hacks. --- src/content/dependencies/generateAlbumCoverArtwork.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/content/dependencies/generateAlbumCoverArtwork.js') diff --git a/src/content/dependencies/generateAlbumCoverArtwork.js b/src/content/dependencies/generateAlbumCoverArtwork.js index f6583882..d52d57ce 100644 --- a/src/content/dependencies/generateAlbumCoverArtwork.js +++ b/src/content/dependencies/generateAlbumCoverArtwork.js @@ -34,6 +34,8 @@ export default { }), slots: { + mode: {type: 'string'}, + details: { validate: v => v.is('tags', 'artists'), default: 'tags', @@ -42,6 +44,8 @@ export default { generate: (data, relations, slots, {language}) => relations.coverArtwork.slots({ + mode: slots.mode, + image: relations.image.slots({ path: data.path, -- cgit 1.3.0-6-gf8a5