diff --git a/plugins/last-fm/back.js b/plugins/last-fm/back.js index 567dccc0..a0533d17 100644 --- a/plugins/last-fm/back.js +++ b/plugins/last-fm/back.js @@ -89,6 +89,7 @@ const postSongDataToAPI = async (songInfo, config, data) => { track: songInfo.title, duration: songInfo.songDuration, artist: songInfo.artist, + ...(songInfo.album ? { album: songInfo.album } : undefined), // will be undefined if current song is a video api_key: config.api_key, sk: config.session_key, format: 'json', @@ -157,4 +158,4 @@ const lastfm = async (_win, config) => { }); } -module.exports = lastfm; \ No newline at end of file +module.exports = lastfm;