diff --git a/libs.js b/libs.js index 53d2901..9c90e7a 100644 --- a/libs.js +++ b/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 }