diff options
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 |
commit | 2d652ccc84e1d27c6216fcd570800ed8b0f5216e (patch) | |
tree | be485c52270b0e10bf2223ffe5199188664016ee /src | |
parent | c8101c250dc9e56dcd73caa4beb11858dc5c1cc1 (diff) |
content: generateArtistGroupContributionsInfO: don't sum rereleases
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/generateArtistGroupContributionsInfo.js | 2 |
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); } |