diff options
-rwxr-xr-x | upd8.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js index 618aa951..732c35a1 100755 --- a/upd8.js +++ b/upd8.js @@ -4105,7 +4105,7 @@ const listingSpec = [ title: ({strings}) => strings('listingPage.listAlbums.byDuration.title'), data() { - return albumData.slice() + return albumData .map(album => ({album, duration: getTotalDuration(album.tracks)})) .sort((a, b) => b.duration - a.duration); }, @@ -4554,6 +4554,7 @@ const listingSpec = [ data() { return trackData + .filter(track => track.album.directory !== C.UNRELEASED_TRACKS_DIRECTORY) .map(track => ({track, duration: track.duration})) .filter(({ duration }) => duration > 0) .sort((a, b) => b.duration - a.duration); |