« get me outta code hell

content: generateArtistGroupContributionsInfO: don't sum rereleases - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-02-14 11:42:07 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-14 13:15:30 -0400
commit2d652ccc84e1d27c6216fcd570800ed8b0f5216e (patch)
treebe485c52270b0e10bf2223ffe5199188664016ee /src/content/dependencies
parentc8101c250dc9e56dcd73caa4beb11858dc5c1cc1 (diff)
content: generateArtistGroupContributionsInfO: don't sum rereleases
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateArtistGroupContributionsInfo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/dependencies/generateArtistGroupContributionsInfo.js b/src/content/dependencies/generateArtistGroupContributionsInfo.js
index 374849ac..a51f516b 100644
--- a/src/content/dependencies/generateArtistGroupContributionsInfo.js
+++ b/src/content/dependencies/generateArtistGroupContributionsInfo.js
@@ -36,7 +36,7 @@ export default {
     for (const track of filteredTracks) {
       for (const group of track.album.groups) {
         groupToCountMap.set(group, groupToCountMap.get(group) + 1);
-        if (track.duration) {
+        if (track.duration && track.originalReleaseTrack === null) {
           groupToDurationMap.set(group, groupToDurationMap.get(group) + track.duration);
           groupToDurationCountMap.set(group, groupToDurationCountMap.get(group) + 1);
         }