diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-03-07 11:59:42 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-18 22:56:03 -0300 |
commit | 385721c1f2c37581dfa8473259ca4c98f7d9921d (patch) | |
tree | 8e70afda6d7e9e66e2d78e1d634164c2b87500f8 /src/data/things/track.js | |
parent | d313f81225790c9d8e9506c3a85261d2710a4aa4 (diff) |
data: track: withTrackArtDate
Diffstat (limited to 'src/data/things/track.js')
-rw-r--r-- | src/data/things/track.js | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js index d9254196..57d2ed20 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -67,6 +67,7 @@ import { withOriginalRelease, withOtherReleases, withPropertyFromAlbum, + withTrackArtDate, } from '#composite/things/track'; export class Track extends Thing { @@ -149,27 +150,14 @@ export class Track extends Thing { }), ], - // Date of cover art release. Like coverArtFileExtension, this represents - // only the track's own unique cover artwork, if any. This exposes only as - // the track's own coverArtDate or its album's trackArtDate, so if neither - // is specified, this value is null. coverArtDate: [ - withHasUniqueCoverArt(), - - exitWithoutDependency({ - dependency: '#hasUniqueCoverArt', - mode: input.value('falsy'), - }), - - exposeUpdateValueOrContinue({ - validate: input.value(isDate), - }), - - withPropertyFromAlbum({ - property: input.value('trackArtDate'), + withTrackArtDate({ + from: input.updateValue({ + validate: isDate, + }), }), - exposeDependency({dependency: '#album.trackArtDate'}), + exposeDependency({dependency: '#trackArtDate'}), ], coverArtDimensions: [ |