Expose date information in album

This commit is contained in:
Lynn Smeria 2018-08-29 17:31:38 +02:00
parent c25b7badbe
commit e466b92b3a
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "publikator", "name": "publikator",
"version": "0.16.0", "version": "0.17.0",
"main": "index.js", "main": "index.js",
"repository": "https://github.com/aengl/publikator.git", "repository": "https://github.com/aengl/publikator.git",
"author": "Lynn Smeria <ae@cephea.de>", "author": "Lynn Smeria <ae@cephea.de>",

View file

@ -28,6 +28,7 @@ const getAlbumInfo = (root, tracks) => ({
bitrate: collect(tracks, t => t.format.bitrate), bitrate: collect(tracks, t => t.format.bitrate),
trackCount: tracks.length, trackCount: tracks.length,
cover: tracks[0].cover || null, cover: tracks[0].cover || null,
date: tracks[0].common.date || null,
tracks: _.sortBy(tracks, 'common.track.no'), tracks: _.sortBy(tracks, 'common.track.no'),
}); });