After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 601612 - 2.0 Radio API doesn't work for non-subscribers in any country but 1.0 API does
2.0 Radio API doesn't work for non-subscribers in any country but 1.0 API does
Status: RESOLVED WONTFIX
Product: banshee
Classification: Other
Component: Last.fm
git master
Other All
: Normal minor
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
: 608760 632858 641317 658819 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-11-11 22:01 UTC by Iain Lane
Modified: 2011-09-12 13:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Update the version number in the Last.fm Radio API 1.0 call (630 bytes, patch)
2009-11-15 17:26 UTC, Bertrand Lorentz
none Details | Review

Description Iain Lane 2009-11-11 22:01:57 UTC
Hi,

It appears, according to [0], that the 2.0 radio API is only available to subscribers in any country, despite the fact that the streams are available through the website and the (deprecated?) 1.0 API. The official client[1] uses the 1.0 API and works, for example.

I wonder if Banshee could try to use the 1.0 API too, maybe as a fallback if we can't use the supported 2.0 calls.

Just an idea.

Thanks,
Iain

[0] http://www.last.fm/api/radio
[1] http://www.last.fm/download
Comment 1 Bertrand Lorentz 2009-11-15 17:24:12 UTC
Banshee was using the 1.0 radio API and it stopped working some time after the 2.0 API was made available. Banshee 1.5.1 now get the following response when trying to get a radio playlist :

HTTP/1.0 410 Gone

The requested service is no longer available. Please update your client to use our new API at http://www.last.fm/api

Radio streaming still works with the official last.fm client and Rhythmbox, which are still using the 1.0 API. After making some network captures, I've just figured out what the difference is, and how to work around it. I'll post a patch against banshee 1.5.1.

I'm quite annoyed that I realized that only after doing the work to port to the 2.0 API.

Anyway, I'm not going to work on bringing back the 1.0 API as a fallback, for the following reasons :
1/ I think it's going to be completely disabled soon. According to Murphy's Law, probably right after it has been brought back in Banshee ;)
2/ Using it would probably be a violation of the Last.fm Terms of Service : http://www.last.fm/api/tos (paragraph 2.6)
3/ I have more than 4 months left on my Last.fm subscription ;)
Comment 2 Bertrand Lorentz 2009-11-15 17:26:47 UTC
Created attachment 147800 [details] [review]
Update the version number in the Last.fm Radio API 1.0 call

This patch applies against Banshee 1.5.1 and apparently makes radio streaming work again with the 1.0 API.
This doesn't apply to current git master (see above comment).
Comment 3 Alexander Kojevnikov 2010-02-02 02:46:46 UTC
*** Bug 608760 has been marked as a duplicate of this bug. ***
Comment 4 Alexander Kojevnikov 2010-03-04 09:36:35 UTC
(In reply to comment #1)
> 1/ I think it's going to be completely disabled soon. According to Murphy's
> Law, probably right after it has been brought back in Banshee ;)
> 2/ Using it would probably be a violation of the Last.fm Terms of Service :
> http://www.last.fm/api/tos (paragraph 2.6)

Closing as WONTFIX because of this.
Comment 5 Alexander Kojevnikov 2010-10-22 07:31:24 UTC
*** Bug 632858 has been marked as a duplicate of this bug. ***
Comment 6 Michael Martin-Smucker 2011-03-31 16:08:08 UTC
*** Bug 641317 has been marked as a duplicate of this bug. ***
Comment 7 Michael Martin-Smucker 2011-09-12 13:13:18 UTC
*** Bug 658819 has been marked as a duplicate of this bug. ***