From 6ddc14218d1e2c6afde5469c61c626dfbda6974d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 9 Dec 2024 16:06:17 -0400 Subject: data: Default Track Dimensions --- src/data/things/album.js | 7 +++++++ src/data/things/track.js | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'src/data/things') diff --git a/src/data/things/album.js b/src/data/things/album.js index 3f3f195a..303c64b6 100644 --- a/src/data/things/album.js +++ b/src/data/things/album.js @@ -150,6 +150,8 @@ export class Album extends Thing { dimensions(), ], + trackDimensions: dimensions(), + bannerDimensions: [ exitWithoutContribs({contribs: 'bannerArtistContribs'}), dimensions(), @@ -409,6 +411,11 @@ export class Album extends Thing { transform: parseDimensions, }, + 'Default Track Dimensions': { + property: 'trackDimensions', + transform: parseDimensions, + }, + 'Wallpaper Artists': { property: 'wallpaperArtistContribs', transform: parseContributors, diff --git a/src/data/things/track.js b/src/data/things/track.js index 408f18fb..7934daa6 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -197,6 +197,13 @@ export class Track extends Thing { coverArtDimensions: [ exitWithoutUniqueCoverArt(), + + withPropertyFromAlbum({ + property: input.value('trackDimensions'), + }), + + exposeDependencyOrContinue({dependency: '#album.trackDimensions'}), + dimensions(), ], -- cgit 1.3.0-6-gf8a5