From 32bc38faf46d61a4788ee8a3a596a7b366745e9a Mon Sep 17 00:00:00 2001 From: GrandUltimateFixer Date: Sun, 25 Apr 2021 21:32:45 +0400 Subject: [PATCH] Such a simple fix. for fuck sake --- app/src/integrations.js | 3 ++- app/src/server.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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) -- 2.25.1