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

Ability to "Love this Track" #8

Open
MenaceInc opened this issue Aug 11, 2018 · 1 comment
Open

Ability to "Love this Track" #8

MenaceInc opened this issue Aug 11, 2018 · 1 comment

Comments

@MenaceInc
Copy link

It would be great if there was a button added under Playback to love the current track.

Looking over the API, it seems like it may be a little tricky.

Sure, it'd be easy enough to use the Track.love method but then that doesn't allow the user to unlove the track.

You could make the button unlove the current track if it's already loved but I can't see a way to check if a track is already loved by the user.

There is a User.getLovedTracks but that returns a set of tracks and not an individual track's loved status. Then you're getting into parsing and keeping track of all the user's loved tracks and that sounds doable but a nightmare tbqh.

I think just the Love button would be good for a start at least.

I wonder how the official client manages it.

@ghost
Copy link

ghost commented Nov 18, 2019

Assuming you still get notifications on ancient posts, I have a component that does exactly this. It stores the "loved" status internally and is available via title formatting. It can import all your loved tracks and match them against tracks in your library. There are context menu commands for loving/unloving tracks which can be bound to buttons or keyboard shortcuts.

https://github.com/marc2k3/foo_lastfm_playcount_sync/releases

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

1 participant