It would be nice if Mopidy supported Last.fm radio streaming, e.g. through MPD commands like this:
This is already supported by the MPoD client.
Flow will need to be something along the lines of:
I'm not sure yet which of the auth paths is right for us. Furthermore I would propose this as a at earliest 0.4 feature, preferably 0.5 :)
I hope we can use pylast for all of this, and then just give the MP3 stream URL to GStreamer.
Hopefully implementation of http://code.google.com/p/pylast/issues/detail?id=60 can simplify this for us. But this would still leave handling of the timeout issues etc.
http://svn.base-art.net/public/elisa/lastfm/lastfm_src.py might also be worth looking at. This approach would also play nicely with the idea of having a spotify gstreamer element as mentioned in #40.
Last.fm just announced that they will discontinue their paid streaming service in most countries, including Norway and Switzerland, from January 15 2013. This means that @adamcik and myself now have no reason to add a Last.fm backend to Mopidy.
The announcement is available at http://www.last.fm/announcements/radio2013
If someone from the US, the U.K, Germany, Canada, Australia, New Zealand, Ireland, or Brazil starts working on a Last.fm backend for Mopidy, please reopen this issue and share your plans with us.