diff options
Diffstat (limited to 'src/content/dependencies/generateAlbumTrackList.js')
| -rw-r--r-- | src/content/dependencies/generateAlbumTrackList.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/content/dependencies/generateAlbumTrackList.js b/src/content/dependencies/generateAlbumTrackList.js index d40fb259..6c8a21c2 100644 --- a/src/content/dependencies/generateAlbumTrackList.js +++ b/src/content/dependencies/generateAlbumTrackList.js @@ -87,7 +87,9 @@ export default { data.trackSectionDurations = album.trackSections .map(section => - accumulateSum(section.tracks, track => track.duration)); + (section.hideDuration + ? null + : accumulateSum(section.tracks, track => track.duration))); data.trackSectionDurationsApproximate = album.trackSections @@ -159,7 +161,7 @@ export default { language.encapsulate(capsule, capsule => { const options = {section: name}; - if (duration !== 0) { + if (duration) { capsule += '.withDuration'; options.duration = language.formatDuration(duration, { |