Hi all,
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?
Thanks in advance.
Frits
The said script:
----------8<------------------8<---------------
#!/usr/bin/liquidsoap
# Log dir
set("log.file.path","/tmp/basic-radio.log")
myplaylist = request.dynamic({request(get_process_output("php
/var/www/includes/phpshout.php"))})
# Some jingles
jingles = playlist("/srv/jukebox/out/jingles.m3u")
# If something goes wrong, we'll play this
security = single("/srv/jukebox/default.mp3")
# Start building the feed with music
radio =
smart_crossfade(start_next=3.,fade_out=3.,fade_in=3.,normalize(myplaylist))
# Now add some jingles
radio = random(weights = [1, 4], [jingles, radio])
radio = fallback(track_sensitive = false, [radio, security])
# Stream it out
output.icecast.mp3(host = "radiotwenterand.nl", port = 8000, password =
"***",mount = "basic-radio.mp3", radio)
----------8<------------------8<---------------