diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-02-16 08:14:18 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-02-16 08:18:43 -0400 |
commit | 5108cf043ebe41de0c62887eaaeb51f0d3d70594 (patch) | |
tree | 8d5d88f10a05e62157127c1ab2f462b966139748 /src/data/things | |
parent | 98561e7bbc8137f3b1cb222d9ed4cfb3c6fc6bd9 (diff) |
data, yaml: find.artistIncludingAliases -> find.artistAlias
Diffstat (limited to 'src/data/things')
-rw-r--r-- | src/data/things/artist.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/data/things/artist.js b/src/data/things/artist.js index 589eca90..6e61c28f 100644 --- a/src/data/things/artist.js +++ b/src/data/things/artist.js @@ -256,16 +256,13 @@ export class Artist extends Thing { include: artist => !artist.isAlias, }, - artistIncludingAliases: { + artistAlias: { referenceTypes: ['artist', 'artist-gallery'], bindTo: 'artistData', - getMatchableDirectories(artist) { - // Regular artists are always matchable by their directory. - if (!artist.isAlias) { - return [artist.directory]; - } + include: artist => artist.isAlias, + getMatchableDirectories(artist) { const originalArtist = artist.aliasedArtist; // Aliases never match by the same directory as the original. |