-
Notifications
You must be signed in to change notification settings - Fork 7
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
Where can I find the documentation to write a new libre.fm client? #41
Comments
There is none. It would be useful to add some to the wiki. Mostly you'll just want to write a client for Last.fm and change the endpoints. |
Is libre.fm compatible with the v2 API or is only the v1 API for Last.fm implemented? |
Full 1.0 and partial 2.0.
|
What API would you recommend for a new client? |
I'm honestly not sure. If 2.0 can work for you, then please try it.
|
Is it better to wait for the new authentication system to be implemented? I do not want implement a client for an old or obsolete api. |
The new system will replace the old system in a way that won't matter to
a client.
|
What are the correct scrobling endpoints? Is |
Treat turtle.libre.fm as post.audioscrobbler.com in any documentation you have. |
Ok, thanks. For last.fm v2 API there are an API Key and an API Secret besides the username and password. How can I generate this tuple for libre.fm? |
We don't check the API key, I think its just a 32 character string.
|
My last.fm client uses https://ws.audioscrobbler.com/2.0/ as endpoint. I think I must write a complete new client that uses this documentation: https://www.last.fm/de/api/submissions |
So https://libre.fm/2.0/ is the equivalent URL there.
|
I got a 404 response sending the first POST request to "https://turtle.libre.fm/2.0/?format=json" payload: "password=redacted&username=jcorporation&method=auth.getMobileSession" |
Yes, send it to https://libre.fm/2.0/ |
Sorry, I missed the change of the host. Now I get a "Invalid parameters - Your request is missing a required parameter". This should fetch the session key as described in the last.fm documentation and this works for last.fm. Any hint? |
See if you can get https://launchpad.net/ubuntu/+source/zomg/0.8.1-2 working locally. That should just work and I think you’ll be able to see how it works. |
This client implements the old scrobbling API, but I will try. I reviewed it's code and re-implemented it in Lua. My code works successfully with last.fm, but not with libre.fm. I only changed username/password and the handshake url from I read the uri's for submissions and now playing from the first successfull handshake response. |
I am unable to find the reason why my client does not work with libre.fm but with last.fm. I installed mpdscribble and it works successfully with my account on libre.fm. I captured the network traffic to find differences between my implementation and that from mpdscribble, but for me the requests are looking in both cases correct. Any further hint? mpdscribble - successfull
mympd client - not working
|
Is your client successfully able to login before you make those submissions? |
You mean the handshake? Yes, I get a OK and a session id that looks good for me. |
Can you write up some details on how we might test this code of yours? |
|
I would also like to implement a librefm client for my scrobbling app, multi-scrobbler, which will enable scrobbling from many sources to librefm -- but I need (want) to implement the lastfm 2.0 protocol since I already have a Lastfm client implemented for this. However, I do not see anywhere on my profile page to get or create an API key. How can I get this? Or is it just a matter of running through the auth flow with a callback url and fake API key and getting a token back? |
I'm currently attempting to make a fork of the rustfm-scrobble crate that would instead scrobble to Libre.fm (using the 2.0 API). auth.getMobileSession did not work for me either, while I was able to get the Web authentication (manually getting a token from https://libre.fm/api/auth/?api_key=\<key>&cb=http://localhost:8000/) to work. I believe there may just be an issue with the mobile session method at the moment. I plan to try the desktop authentication later. |
So we may not fully implement the API so we may need some contributions to make that work. |
I don’t presently know PHP, but I’d be open to taking a look at it. I’d at the very least be willing to write docs for what is there so far. |
I want to write I client for myMPD, but I have found no API documentation for libre.fm.
The text was updated successfully, but these errors were encountered: