Le Friday 31 August 2007 21:47:55 Romain Beauxis, vous avez écrit : > In this case, there isn't even any need for an input.http, the asynchronous > mechanism can be used !!
Ok folks, here is the new proposal: input.lastfm(user:"...", password:"..", ~url:"lastfm://...") The protocol handling is even more easy, it is only a webservice! See: http://mattdbrown.blogspot.com/2007/07/internets-using-lastfm-to-obtain-xml.html * get sessionID: URI: handshake.php?username=[USERNAME]&passwordmd5=[mp5] * set station: adjust.php?session=[SESSIONID]&url=[LASTFMURI] * obtain XSPF playlist: xspf.php?sk=[SESSIONID]&discovery=0&desktop=1.3.1.1 Then you got a playlist that form: <playlist version="1" xmlns:lastfm="http://www.audioscrobbler.net/dtd/xspf-lastfm"> <title>+rocksteady+Tag+Radio</title> <creator>Last.fm</creator> <link rel="http://www.last.fm/skipsLeft">20</link> <trackList> <track> <location>http://************************.mp3</location> <title>Night and Day</title> <id>11294494</id> <album>Plays Hits From Studio One And More Vol. 2</album> <creator>Jackie Mittoo & Winston Wright</creator> <duration>163000</duration> <image>http://cdn.last.fm/depth/catalogue/noimage/cover_med.gif</image> <lastfm:trackauth>808d2</lastfm:trackauth> <lastfm:albumId>2856665</lastfm:albumId> <lastfm:artistId>6689980</lastfm:artistId> <link rel="http://www.last.fm/artistpage">http://www.last.fm/music/Jackie%2BMittoo%2B%2526%2BWinston%2BWright</link> <link rel="http://www.last.fm/albumpage">http://www.last.fm/music/Jackie%2BMittoo%2B%2526%2BWinston%2BWright/Plays+Hits+From+Studio+One+And+More+Vol.+2</link> <link rel="http://www.last.fm/trackpage">http://www.last.fm/music/Jackie%2BMittoo%2B%2526%2BWinston%2BWright/_/Night+and+Day</link> <link rel="http://www.last.fm/buyTrackURL"></link> <link rel="http://www.last.fm/buyAlbumURL">http://www.last.fm/affiliate_sendto.php?link=catch&prod=2856665&pos=65633c2c6d40fbe9c8bf27ce82d2ca5a</link> <link rel="http://www.last.fm/freeTrackURL"></link> </track> </trackList> </playlist> You then need to download each track *one by one* and queue them.. The url can be avoided at first, and set later on, so we could export: get_url set_url As long as possibly: (un)love_song (un)ban_song Also, the source may behave exactly the same as a playlist, allowing stop start, but should be refreshed regulary, so I guess this input could use playlist.. I'll look at the implementation but I'd still love some hand from the gurus of course :) Romain -- Could not recognize the faces standing over me; They were all dressed in uniforms of brutality.
