You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: