Hi Romain,

Great to hear that it's getting simpler.

On 8/31/07, Romain Beauxis <[EMAIL PROTECTED]> wrote:
> input.lastfm(user:"...", password:"..", ~url:"lastfm://...")

(Remark #0: it looks like you've been coding more OCaml than LiqScript
these days, in liquidsoap you don't say ~var:val but var=val in
parameters list.)

> * obtain XSPF playlist: xspf.php?sk=[SESSIONID]&discovery=0&desktop=1.3.1.1
> [...]
> You then need to download each track *one by one* and queue them..

Remark #1: This is much nicer than the raw mp3 stream you were talking
about earlier. It means that start/stop are do-able, but also
cross-fadings! Now, it sounds like lastFM could almost be a protocol
rather than a source. What about the following ?

 set lastfm.user = ..
 set lastfm.password = ..
 s = single("lastfm:rocksteady")

Implementing a protocol is rather easy, you can hand http download to
the http protocol, edit metadata, and many sources can then use the
protocol. The only problem (why lastFM is only almost a protocol) is
that a protocol only gives you one file, not a playlist -- at least
currently. But is it really a limitation ? In your example the
playlist contains only one track. Can't we ask for another playlist
for every track anyway ?

I don't know enough to have a good idea about other comments, like
(un)love. Anyway, at least your proposal is do-able quite easily on
top of request_source.ml abstractions.

Cheers.
-- 
David

Répondre à