diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/listing-spec.js | 3 | ||||
-rw-r--r-- | src/page/album.js | 2 |
2 files changed, 3 insertions, 2 deletions
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, |