Open maverickmarq opened 2 years ago
I've added req.body.album = req.query.album.
Yet I'm not seeing any difference from the server output.
// Build payload for track.scrobble and track.updateNowPlaying
payload.build = function () {
return (req, res, next) => {
req.body.api_key = process.env.API_KEY;
req.body.artist = req.query.artist;
req.body.album = req.query.album;
req.body.format = 'json';
req.body.method = 'track.scrobble';
req.body.sk = process.env.SK;
req.body.timestamp = Math.floor(new Date() / 1000);
req.body.track = req.query.title;
next();
};
};
@maverickmarq I was only able to grab the artist and track title from the AudioStation lyrics plugin: https://github.com/FTLam11/lyrical_fronk/blob/master/lyric.php#L22. Haven't checked for a while, but when I first released this project there was no API for AudioStation. The only avenue for getting the track information was through the lyrics plugin at the time.
@FTLam11 Thanks for getting back to me. It looks like there's album information in some json blob where the lyric plugin is grabbing the JSON. I should be able to get that sorted.
When using the scrobbler, track and artist data is getting picked up fine, but album information isn't tracked.
I'm willing to do a pull request if pointed in the right direction.
https://www.last.fm/user/maverickmarq/library/albums