diff --git a/app/src/integrations.js b/app/src/integrations.js index 0495ac6..df7aecf 100644 --- a/app/src/integrations.js +++ b/app/src/integrations.js @@ -54,11 +54,12 @@ class Integrations extends EventEmitter { } //LastFM Scrobble - async scrobbleLastFM(title, artist) { + async scrobbleLastFM(title, album, artist) { if (this.settings.lastFM) this.lastfm.track.scrobble({ artist: artist, track: title, + album: album, timestamp: Math.floor((new Date()).getTime() / 1000) }); } diff --git a/app/src/server.js b/app/src/server.js index 071e877..43d2707 100644 --- a/app/src/server.js +++ b/app/src/server.js @@ -463,7 +463,7 @@ app.delete('/downloads/:index', async (req, res) => { //Log listen to deezer & lastfm app.post('/log', async (req, res) => { //LastFM - integrations.scrobbleLastFM(req.body.title, req.body.artists[0].name); + integrations.scrobbleLastFM(req.body.title, req.body.album.title, req.body.artists[0].name); //Deezer if (settings.logListen)