Fix album cover

This commit is contained in:
Lynn Smeria 2018-08-27 16:56:52 +02:00
parent 6505e3aff7
commit 1d463642a5
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -27,7 +27,7 @@ const getAlbumInfo = (root, tracks) => ({
artists: collect(tracks, t => t.common.artists || t.common.artist),
bitrate: collect(tracks, t => t.format.bitrate),
trackCount: tracks.length,
cover: tracks[0].coverUrl || null,
cover: tracks[0].cover || null,
tracks,
});