Romain Beauxis wrote:
> Le Saturday 02 February 2008 18:32:26 Frits Letteboer - Radio Twenterand, 
> vous 
> avez écrit :
> Yes, me bad.
> 
> I've added several new function using requests, like request.resolve and 
> request.file, and I renamed request to request.create for more clever 
> namespace...

Ah. Since my knowledge of the language used by LiquidSoap sucks at this
time, I missed it.

How many songs does this function request? Reason for asking is that the
script I made to feed songs to the player assumes the song that is
returned by my script is the one currently playing, but that's not the case.

So I will need to figure out how to publish the song that Liquidsoap is
currently playing to the website. (This is normally done by my request
script).

> I'll be adding a backward compatible function very soon. In the mean time, 
> you 
> can replace request(foo) with request.create(audio=true,foo). audio=true 
> includes tests to check wether the file can be decoded when the request is 
> resolved.

Great. Seems like audio=true is required anyhow, since leaving it out or
setting it to false causes "Thread 3 killed on uncaught exception
Assert_failure("tools/utils.ml", 23, 46)"

> 
> Also, you can use request.create without audio (false by default). This can 
> be 
> usefull for downloading playlists.. On this topic, I have also added 
> playlist.parse to try to parse a playlist inside the script.
> 
> We try to keep svn API page up to date, it is located there:
>   http://savonet.sourceforge.net/wiki/LiqReferenceSVN

Yes, actually I looked there but failed to recognize the change to
request.create. Small examples on using these functions would also help
alot. ;)

Thanks sofar, I got most of these things working now. Getting Savonet to
run on FreeBSD is a royal PITA, btw. But that's another story.






Reply via email to