From 0be0f926421d0efb48d2eb9ac7591ef2a03e4f8e Mon Sep 17 00:00:00 2001 From: Makin Date: Sat, 25 Jan 2025 09:31:11 +0100 Subject: add always reference by directory to albums for mixed find --- src/data/things/album.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/data/things') diff --git a/src/data/things/album.js b/src/data/things/album.js index 151b5087..5f1788f8 100644 --- a/src/data/things/album.js +++ b/src/data/things/album.js @@ -86,6 +86,7 @@ export class Album extends Thing { }), ], + alwaysReferenceByDirectory: flag(false), alwaysReferenceTracksByDirectory: flag(false), suffixTrackDirectories: flag(false), @@ -349,6 +350,11 @@ export class Album extends Thing { album: { referenceTypes: ['album', 'album-commentary', 'album-gallery'], bindTo: 'albumData', + + getMatchableNames: album => + (album.alwaysReferenceByDirectory + ? [] + : [album.name]), }, albumWithArtwork: { @@ -357,6 +363,11 @@ export class Album extends Thing { include: album => album.hasCoverArt, + + getMatchableNames: album => + (album.alwaysReferenceByDirectory + ? [] + : [album.name]), }, }; @@ -417,6 +428,7 @@ export class Album extends Thing { 'Directory Suffix': {property: 'directorySuffix'}, 'Suffix Track Directories': {property: 'suffixTrackDirectories'}, + 'Always Reference By Directory': {property: 'alwaysReferenceByDirectory'}, 'Always Reference Tracks By Directory': { property: 'alwaysReferenceTracksByDirectory', }, -- cgit 1.3.0-6-gf8a5