/usr/share/doc/liquidsoap/examples/fallible.liq is in liquidsoap 1.1.1-6ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #
# This is an example of script which is fallible,
# because the request queue and the afternoon playlist are not trusted.
#
# Try running: liquidsoap -c fallible.liq
morning = playlist.safe("playlist.pls")
afternoon = playlist("ftp://foo/pub/afternoon.pls")
radio = fallback([ request.queue(),
switch([ ({0h-12h}, morning),
({12h-24h}, afternoon) ]) ])
output.file(%vorbis,"/tmp/radio.ogg",radio)
|