« get me outta code hell

data: "Main Release: same name single" - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-10-03 15:07:42 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-10-03 15:07:42 -0300
commit9e7807a8500a0208f8f8cbded89dfb06f1e21061 (patch)
treeb398b42b080032ee82bbb181da42d1d2c61d57a5 /src/data/things
parentbc5e4e37be8b66d99083f26ff0e8b79edf2aa663 (diff)
data: "Main Release: same name single"
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/album.js18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index ac947cfa..2817d78d 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -510,6 +510,20 @@ export class Album extends Thing {
           : [album.name]),
     },
 
+    albumSinglesOnly: {
+      referencing: ['album'],
+
+      bindTo: 'albumData',
+
+      incldue: album =>
+        album.style === 'single',
+
+      getMatchableNames: album =>
+        (album.alwaysReferenceByDirectory
+          ? []
+          : [album.name]),
+    },
+
     albumWithArtwork: {
       referenceTypes: [
         'album',
@@ -523,8 +537,8 @@ export class Album extends Thing {
         album.hasCoverArt,
 
       getMatchableNames: album =>
-        (album.alwaysReferenceByDirectory 
-          ? [] 
+        (album.alwaysReferenceByDirectory
+          ? []
           : [album.name]),
     },