Expose date information in album
This commit is contained in:
parent
c25b7badbe
commit
e466b92b3a
|
@ -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>",
|
||||||
|
|
|
@ -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'),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue