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

@ -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'),
});