diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-19 15:56:14 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-19 15:56:14 -0400 |
commit | d746ff26c3e7517c8aaff7615ae4da06fa2d01c0 (patch) | |
tree | 8bd06ac5502acf24ab4ba23a0ce959c73e51b186 /src/data/things/track.js | |
parent | d81e8d50645d476d41c800ba5ae12497ec5932a3 (diff) |
data, checks: find.{album,track}WithArtwork
Diffstat (limited to 'src/data/things/track.js')
-rw-r--r-- | src/data/things/track.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js index 0ac6aabd..408f18fb 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -628,6 +628,19 @@ export class Track extends Thing { ? [] : [track.name]), }, + + trackWithArtwork: { + referenceTypes: ['track'], + bindTo: 'trackData', + + include: track => + track.hasUniqueCoverArt, + + getMatchableNames: track => + (track.alwaysReferenceByDirectory + ? [] + : [track.name]), + }, }; // Track YAML loading is handled in album.js. |