[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-discuss] Fix for API track.getInfo bug
From: |
Trey Hunner |
Subject: |
[Librefm-discuss] Fix for API track.getInfo bug |
Date: |
Sun, 10 Aug 2014 23:40:09 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I was attempting to add libre.fm support in the Chrome audioscrobbler
plugin (it is hard coded to use last.fm right now).
While testing the plugin with libre.fm I noticed that the track.getInfo
API method does not return the artist as expected and this causes the
plugin using the API to fail to identify the track artist.
I have attached a proof of concept patch that I believe should fix the
API. I have not tested this code, but it should demonstrate what I
believe is wrong, if nothing else.
Relevant API page: http://www.last.fm/api/show/track.getInfo
Relevant Github issue for the Chrome extension:
https://github.com/david-sabata/web-scrobbler/issues/37
Example API URL:
https://libre.fm/2.0/?method=track.getinfo&autocorrect=1&artist=Molly%20Lewis&track=I%20Pity%20the%20Fool
- --
Trey Hunner
http://treyhunner.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJT6GVIAAoJEOpnfp/Nreon6PsH/1VyjIRodwmdNwajrf3UXZWF
+u7FZUOeGZOUPOg3vThs/2QfvjXCKKnPLY8WEK4nwqe+3SJq1gtLsboecKmkn3g8
2SLv9bUb7QpYK3F2cmUXbRF9iCiGilC4qJSZslJWA+sPqKXhSXgj72XxHQsBpzdA
TF5Ig+4u5Rt7DFkPqJlAUWp6bXhkYjwU7JOtraRPZ4b2RAdYca/kf7NCxJ4Rzpd6
SOkczLo9oBXCf5aItin1yjbpsfcDhQgkS54Z3RZdE2bZhP2FEV9euQIXyVmZjDtz
CeK1aC2FLTYDZLuGqhzGzrAZcc3loWbsMpPkjzOwGwladxKpmzXD5iZNztBQNKw=
=Mgq+
-----END PGP SIGNATURE-----
0001-Add-artist-XML-to-track.getInfo.patch
Description: Text Data
- [Librefm-discuss] Fix for API track.getInfo bug,
Trey Hunner <=