From 1d463642a520cf2d201f4413b363bd6d8e2790fa Mon Sep 17 00:00:00 2001 From: Lynn Smeria Date: Mon, 27 Aug 2018 16:56:52 +0200 Subject: [PATCH] Fix album cover --- package.json | 2 +- src/generate.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 547c7c9..6072dd8 100644 --- a/package.json +++ b/package.json @@ -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 ", diff --git a/src/generate.js b/src/generate.js index 57a7165..ff5a777 100644 --- a/src/generate.js +++ b/src/generate.js @@ -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, });