diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-19 14:05:14 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-19 14:05:14 -0400 |
commit | 33f069d8997c494a97f9f6b2dd5651f5bc957d79 (patch) | |
tree | 434a12e6a83f6c7f22ed6da0885ac7c9c5436ef3 /src/content/dependencies/generateAlbumCoverArtwork.js | |
parent | 7cb88275fd3c813114271c0a136b12c72c5a172a (diff) |
content: generate{Album,Flash,Track}CoverArtwork: mode slot
Passthrough. This maintains the interface previously used for all cover artworks and therefore obliterates surrounding hacks.
Diffstat (limited to 'src/content/dependencies/generateAlbumCoverArtwork.js')
-rw-r--r-- | src/content/dependencies/generateAlbumCoverArtwork.js | 4 |
1 files changed, 4 insertions, 0 deletions
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, |