« get me outta code hell

content: gAIPTracksChunkItem: "featuring" is immune to occlusion - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-01-11 17:49:36 -0400
committer(quasar) nebula <qznebula@protonmail.com>2026-01-11 17:53:06 -0400
commit0a28efe024c102a9b66695dedc606db6d63be680 (patch)
treef4d5ef92faef071a52152a81c53b47288df66fcb
parentcd6c3ebdb20ecee2944f0de1cfbed5a24a924cc5 (diff)
content: gAIPTracksChunkItem: "featuring" is immune to occlusion preview
by context, so it's fine to occlude it here
-rw-r--r--src/content/dependencies/generateArtistInfoPageTracksChunkItem.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js b/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js
index b0d9d8e5..f53e0f81 100644
--- a/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js
+++ b/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js
@@ -10,9 +10,11 @@ export default {
     query.track =
       contribs[0].thing;
 
-    const creditedAsArtist =
+    const creditedAsNormalArtist =
       contribs
-        .some(contrib => contrib.thingProperty === 'artistContribs');
+        .some(contrib =>
+          contrib.thingProperty === 'artistContribs' &&
+          contrib.annotation !== 'featuring');
 
     const creditedAsContributor =
       contribs
@@ -20,7 +22,9 @@ export default {
 
     const annotatedContribs =
       contribs
-        .filter(contrib => contrib.annotation);
+        .filter(contrib =>
+          contrib.annotation &&
+          contrib.annotation !== 'featuring');
 
     const annotatedArtistContribs =
       annotatedContribs
@@ -39,7 +43,7 @@ export default {
     // Return seemingly only for "bass clarinet" when they're also
     // the one who composed and arranged Renewed Return!
     if (
-      creditedAsArtist &&
+      creditedAsNormalArtist &&
       creditedAsContributor &&
       empty(annotatedArtistContribs)
     ) {