#12 add album when scrobbling to last.fm

Closed
conn wants to merge 1 commits from conn/freezerpc:master into master
  1. +2
    -1
      app/src/integrations.js
  2. +1
    -1
      app/src/server.js

+ 2
- 1
app/src/integrations.js View File

@ -54,11 +54,12 @@ class Integrations extends EventEmitter {
}
//LastFM Scrobble
async scrobbleLastFM(title, artist) {
async scrobbleLastFM(title, artist, album) {
if (this.settings.lastFM)
this.lastfm.track.scrobble({
artist: artist,
track: title,
album: album,
timestamp: Math.floor((new Date()).getTime() / 1000)
});
}


+ 1
- 1
app/src/server.js View File

@ -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.artists[0].name, req.body.album.title);
//Deezer
if (settings.logListen)


Loading…
Cancel
Save