Le Saturday 02 February 2008 18:32:26 Frits Letteboer - Radio Twenterand, vous
avez écrit :
> Hi all,
Hi !
> I'm currently trying to convert our gazillion-script-system to
> Liquidsoap, but things go sour when I try to use dynamic requests
>
> There seems to be a problem with the following line:
>
> myplaylist = request.dynamic({request(get_process_output("php
> /var/www/includes/phpshout.php"))})
>
> When I try to run it, the following error appears:
>
> "./jukebox.liq
> Line 6, char 96 before ")": Unbound symbol request!"
>
> According to the examples I've seen, that line should work. Has anybody
> an idea to what could be wrong?
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...
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.
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
Romain