Hi,

Romain Beauxis wrote:
> 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

I have cleaned up the http code so that it can be used outside the http
source. I've made dummy code in protocols/lastfm.ml but all I get when I
request sessionID is:

session=FAILED
msg=no such user

I've juste registered so my account might not have been propagated yet.
It should be clear enough about how to complete the code. Please do it
if you have some time, I won't have time to do so in the next days...

Cheers,

Samuel.

Répondre à