From b494fd1a9f4c77994a239ce12b04cafa5ae3315d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 6 Dec 2022 08:16:27 -0400 Subject: fix missing album duration...... oops --- src/listing-spec.js | 3 ++- src/page/album.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/listing-spec.js b/src/listing-spec.js index e01912cd..e96955d9 100644 --- a/src/listing-spec.js +++ b/src/listing-spec.js @@ -52,7 +52,7 @@ const listingSpec = [ album, duration: getTotalDuration(album.tracks), })) - .filter(album => album.duration) + .filter(({duration}) => duration > 0) .sort((a, b) => b.duration - a.duration), row: ({album, duration}, {language, link}) => @@ -531,6 +531,7 @@ const listingSpec = [ group.albums.flatMap(album => album.tracks), {originalReleasesOnly: true}), })) + .filter(({duration}) => duration > 0) .sort((a, b) => b.duration - a.duration), row: ({group, duration}, {language, link}) => diff --git a/src/page/album.js b/src/page/album.js index 1a90a79c..f2c35a14 100644 --- a/src/page/album.js +++ b/src/page/album.js @@ -212,7 +212,7 @@ export function write(album, {wikiData}) { date: language.formatDate(album.coverArtDate), }), - album.duration > 0 && + albumDuration > 0 && language.$('releaseInfo.duration', { duration: language.formatDuration(albumDuration, { approximate: album.tracks.length > 1, -- cgit 1.3.0-6-gf8a5