« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'upd8.js')
-rwxr-xr-xupd8.js3
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);