diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-01-26 18:36:55 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-01-26 18:36:55 -0400 |
| commit | a8f36db5eac0a6ba89127ef393a68ffe94cf79a0 (patch) | |
| tree | 8c4177c0d0cdd679ad79bc039d5a82f1bec1e2bc /src/content/dependencies/generateArtistInfoPageTracksChunkItem.js | |
| parent | ac4b8a49c6bed647811198eadb6b189dfa91d7b9 (diff) | |
content: gAIPTracksChunkItem: use annotation parts
Diffstat (limited to 'src/content/dependencies/generateArtistInfoPageTracksChunkItem.js')
| -rw-r--r-- | src/content/dependencies/generateArtistInfoPageTracksChunkItem.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js b/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js index f53e0f81..3d6e274b 100644 --- a/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js +++ b/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js @@ -14,7 +14,7 @@ export default { contribs .some(contrib => contrib.thingProperty === 'artistContribs' && - contrib.annotation !== 'featuring'); + !contrib.isFeaturingCredit); const creditedAsContributor = contribs @@ -22,9 +22,7 @@ export default { const annotatedContribs = contribs - .filter(contrib => - contrib.annotation && - contrib.annotation !== 'featuring'); + .filter(contrib => !empty(contrib.annotationParts)); const annotatedArtistContribs = annotatedContribs @@ -117,10 +115,10 @@ export default { duration: query.track.duration, - contribAnnotations: + contribAnnotationParts: (query.displayedContributions ? query.displayedContributions - .map(contrib => contrib.annotation) + .flatMap(contrib => contrib.annotationParts) : null), }), @@ -137,8 +135,8 @@ export default { firstReleaseTooltip: relations.firstReleaseTooltip, annotation: - (data.contribAnnotations - ? language.formatUnitList(data.contribAnnotations) + (data.contribAnnotationParts + ? language.formatUnitList(data.contribAnnotationParts) : html.blank()), content: |