Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Album information not scrobbled #13

Open
maverickmarq opened this issue Nov 22, 2021 · 3 comments
Open

Album information not scrobbled #13

maverickmarq opened this issue Nov 22, 2021 · 3 comments

Comments

@maverickmarq
Copy link

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

@maverickmarq
Copy link
Author

maverickmarq commented Nov 22, 2021

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();
  };
};

@FTLam11
Copy link
Owner

FTLam11 commented Nov 26, 2021

@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.

@maverickmarq
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants