diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2025-11-25 17:14:04 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2025-11-25 17:14:04 -0400 |
| commit | 8f64d50645a6cabc16ba12d31e5872b693e860f6 (patch) | |
| tree | 7d499df1c569de2f112864a4e7b082532beb4545 /src/data/things | |
| parent | 88bba2e743cb3b96498be7110bc7dd93e173940b (diff) | |
data: Track: chop withPropertyFromAlbum
Diffstat (limited to 'src/data/things')
| -rw-r--r-- | src/data/things/track.js | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js index 75ffcfb7..39a1804f 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -89,7 +89,6 @@ import { import { inheritContributionListFromMainRelease, inheritFromMainRelease, - withPropertyFromAlbum, } from '#composite/things/track'; export class Track extends Thing { @@ -161,7 +160,8 @@ export class Track extends Thing { validate: input.value(isBoolean), }), - withPropertyFromAlbum({ + withPropertyFromObject({ + object: 'album', property: input.value('alwaysReferenceTracksByDirectory'), }), @@ -306,7 +306,8 @@ export class Track extends Thing { validate: input.value(isContentString), }), - withPropertyFromAlbum({ + withPropertyFromObject({ + object: 'album', property: input.value('trackArtistText'), }), @@ -324,7 +325,8 @@ export class Track extends Thing { dependency: '_artistText', }), - withPropertyFromAlbum({ + withPropertyFromObject({ + object: 'album', property: input.value('trackArtistText'), }), @@ -352,7 +354,8 @@ export class Track extends Thing { // Secondary releases' artists may differ from the main release. inheritContributionListFromMainRelease(), - withPropertyFromAlbum({ + withPropertyFromObject({ + object: 'album', property: input.value('trackArtistContribs'), }), @@ -412,7 +415,8 @@ export class Track extends Thing { exposeDependencyOrContinue({dependency: '#trackSection.color'}), - withPropertyFromAlbum({ + withPropertyFromObject({ + object: 'album', property: input.value('color'), }), @@ -479,7 +483,8 @@ export class Track extends Thing { mode: input.value('empty'), }), - withPropertyFromAlbum({ + withPropertyFromObject({ + object: 'album', property: input.value('trackCoverArtistContribs'), }), @@ -508,7 +513,8 @@ export class Track extends Thing { validate: input.value(isDate), }), - withPropertyFromAlbum({ + withPropertyFromObject({ + object: 'album', property: input.value('trackArtDate'), }), @@ -531,7 +537,8 @@ export class Track extends Thing { validate: input.value(isFileExtension), }), - withPropertyFromAlbum({ + withPropertyFromObject({ + object: 'album', property: input.value('trackCoverArtFileExtension'), }), @@ -550,7 +557,8 @@ export class Track extends Thing { exposeUpdateValueOrContinue(), - withPropertyFromAlbum({ + withPropertyFromObject({ + object: 'album', property: input.value('trackDimensions'), }), @@ -704,7 +712,8 @@ export class Track extends Thing { dependency: 'dateFirstReleased', }), - withPropertyFromAlbum({ + withPropertyFromObject({ + object: 'album', property: input.value('date'), }), @@ -782,7 +791,8 @@ export class Track extends Thing { : continuation()), }, - withPropertyFromAlbum({ + withPropertyFromObject({ + object: 'album', property: input.value('trackCoverArtistContribs'), internal: input.value(true), }), @@ -1100,7 +1110,8 @@ export class Track extends Thing { ], groups: [ - withPropertyFromAlbum({ + withPropertyFromObject({ + object: 'album', property: input.value('groups'), }), |