Library No Longer Works
Status: Beta
Brought to you by:
vambrose
This library no longer works when scrobbling or updating tracks. I used it countless times before without problem. I took a break from programming my music player and came back to it. Now scrobbles fail. Your test code on the home page fails to scrobble or update or do anything but login.
I haven't touched this thing in 4 years so I didn't expect it to work. But I tried it out and it still works!! Amazing!
Try LASTFM_print_session(stdout,s); after logging in to see if everything important has been filled in.
Could be a problem with your API key
Thanks for the response!
How would I know it's a problem with my API key? I applied for a new API key yesterday because I thought the same thing, but the new key didn't solve anything.
Below is the output of LASTFM_print_session(stdout,s); after logging in and attempting to scrobble. According to the return code of the scrobble(0 or LASTFM_STATUS_OK) the track successfully scrobbles, but it definitely is not showing as scrobbled on the account I used.
status = ok
username = thewisenoob
api_key = my API key was shown here
secret = secret was shown here
auth_token = 201608354217e76c57111d2b3ae598c6 <- don't know what this is
sk = nKxgOI3MDBZPLe3T5Fhpa20_hj4kJ9I9 <- this either
session_id =
Now-Playing URL = (null)
Submission URL = (null)
Any idea what might be happening? I'm using the build of your library from the community repository on Arch Linux.
So I had a look again at the scrobble api. It hasn't changed in all these years thats why the code still works but Last.fm has got stricter. You have to put real data in there. They filter out scrobbles now. So my example.c won't even work with all the 0s in there. See this page https://www.last.fm/api/scrobbling#filters
I haven't provided any API to debug this issue so it will be difficult for you to do unless you build it from source. If you do build it from source, go to track.c and add a printf around line 217...
217 printf("page = \n%s\n",wpage->page);
218 xml = tinycxml_parse(wpage->page);
Thanks! I managed to get it working with that help.
Non issue. Closing. Will add API to return scrobble ignoredMessage from last.fm