-
Notifications
You must be signed in to change notification settings - Fork 22
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
support client protocol to "love" a track. #13
Comments
Which clients use this messaging system to broadcast that a track was 'loved' and do they follow a standard? |
right now only mpdscribble supports this feature. I dont know any C, but here is the relevant commit: no client apart from mpc uses this yet. But with mpc you can already set the love flag. |
Ok, thanks for explaining. It seems like an interesting concept, but maybe it is not too urgent, yet? I will definitely keep this in mind, though. Is that ok? |
The sooner the better 😉 |
well, love support would be nice to have. the client protocol would just be the best way to implement this. but i would be happy for a simple mpdas --love option already :) |
Well, now that the demand has doubled I should certainly take a look ;) mpdas actually used to have a mechanism to love tracks but it was removed, because the responsible Last.fm API did not work. I will probably go for the client protocol approach, but first mpdas needs some love itself. I might get this done either this week or in January. I hope that other clients will adhere to the same protocol/channel for transmitting that a track was loved. Thanks for the input, guys. |
was this with V2 of the protocol? Just asking because V1 was missing information in api documentation. This should not be the case for V2 |
it was with v2. i dont want to rule out an error in my implementation, but i remember reading complains from other developers about it. either way, the approach back then was overly complicated. fyi, this is the related commit: 11ff627 |
I don't know if this helps, but right now I use this to love a track: |
btw, client protocol would also be useful to e.g. pause/unpause scrobbling.without killing the program |
I have just committed this functionality (loving for now), but only briefly tested it. Could you guys see if it works for you? The channel is "mpdas", so 'mpc sendmessage mpdas love' should love the currently playing track. |
new version segfaults for me... Program received signal SIGABRT, Aborted. |
Hey, can you try again with the latest commit? If that does not work, can you build it with debug infos by adding "-g" to CXXFLAGS and LDFLAGS and send me another backtrace? |
ok, now i cant get authentication to work... tried with both real password and md5sum of the same... |
The authentication process hasn't been touched. Are you sure your MD5sum is correct? If you've used "echo pass | md5sum" make sure you pass -n to echo, so that the newline is not included in the hash. |
no clue what went wrong. maybe lastfm was acting on me. tried again today and it worked. including loving of a track! |
Glad it works! Thanks for your feedback :) |
hmm and suddenly it doesnt work anymore. it says "loved track successfully" but nothing happens. sigh |
just tried this myself and it worked fine, are you still affected? is your clock set up correctly? |
mpd has this nifty feature, where other clients can request actions from other clients. The "love" flag is a perfect example, where this can be useful.
http://www.musicpd.org/doc/protocol/client_to_client.html
the love flag is documented here:
http://www.last.fm/api/show/track.love
The text was updated successfully, but these errors were encountered: