From e466b92b3a9634dee23203dc58eb903c914e3fd4 Mon Sep 17 00:00:00 2001 From: Lynn Smeria Date: Wed, 29 Aug 2018 17:31:38 +0200 Subject: [PATCH] Expose date information in album --- package.json | 2 +- src/generate.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7b32537..b530d52 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "publikator", - "version": "0.16.0", + "version": "0.17.0", "main": "index.js", "repository": "https://github.com/aengl/publikator.git", "author": "Lynn Smeria ", diff --git a/src/generate.js b/src/generate.js index 8917f24..03951ba 100644 --- a/src/generate.js +++ b/src/generate.js @@ -28,6 +28,7 @@ const getAlbumInfo = (root, tracks) => ({ bitrate: collect(tracks, t => t.format.bitrate), trackCount: tracks.length, cover: tracks[0].cover || null, + date: tracks[0].common.date || null, tracks: _.sortBy(tracks, 'common.track.no'), });