Fixed bug for mysterious cover
This commit is contained in:
parent
e9f43d47ea
commit
6564dec7a8
1 changed files with 2 additions and 2 deletions
4
libs.js
4
libs.js
|
@ -131,7 +131,7 @@ const findCover = (song, callback) => {
|
|||
if (metadata) {
|
||||
// On a déjà une pochette pour ce morceau
|
||||
if (metadata.cover) {
|
||||
console.log(config.colors.FgBlue, '[INFO][findCover] cover exists:', metadata.cover, config.colors.Reset)
|
||||
console.log(config.colors.FgBlue, '[INFO][findCover] cover exists:', metadata._id, metadata.cover, config.colors.Reset)
|
||||
|
||||
callback(null, metadata.cover)
|
||||
return true
|
||||
|
@ -180,7 +180,7 @@ const getStream = (callback) => {
|
|||
title: _body.data[0].track.title,
|
||||
album: _body.data[0].track.album,
|
||||
royaltytrackid: _body.data[0].track.royaltytrackid,
|
||||
id: _body.data[0].track.id,
|
||||
id: _body.data[0].track.id || `FAKEID_${_body.data[0].track.artist}_${_body.data[0].track.title}_${_body.data[0].track.album}`,
|
||||
playlistId: _body.data[0].track.playlist ? _body.data[0].track.playlist.id : null,
|
||||
thumbCover: _body.data[0].track.imageurl
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue