Hi Jorge !
Le Wednesday 01 August 2007 20:57:12 Jorge Ignacio Jim=E9nez, vous avez =E9=
> 4) if playlist-main.txt is corrupted or deleted and the radio station is
> restarted, it does not load the playlist-rescue.txt :(
> HOW CAN I FIX THE 4 POINT?
There is an hidden assumption in playlist.safe operator, which is that the=
playlist *must* work. So, even when not used, as soon at the stream source =
evaluated, it fails to verify this and liq stops..
The quick solution is simply to replace playlist.safe by playlist in this=20
=46urthermore, starting with 0.3.3 release, the normal install adds a utils=
file, automatically loaded and usually located at either /usr/lib/liquidsoa=
or /usr/local/lib/liquidsoap, containing additionals operators.
One of them is mksafe(source) -> source. As the name says, it returns an=20
infaillible source from any source.
As David said, playlist.safe is not a good operator. For instance, when doi=
my test, it failed even while there was audio files available, but,=20
using "/tmp/" as the playlist, it took too long to find an available file..
So, I would recommend the following script for you:
set log.dir =3D "/tmp"
set socket =3D false
stream =3D normalize(mksafe(playlist(mode=3D"normal",
iffail =3D normalize(mksafe(playlist(mode=3D"normal",
die =3D fallback(track_sensitive=3Dfalse,[stream,iffail])
output =3D output.icecast.mp3(mount=3D"test.mp3",bitrate=3D64,host=3D"local=
Of course, you may still use playlist.safe for the fallback source if you w=
to be sure that it is available. The above script may end-up delivering onl=
silence in case both playlists aren't available..
Oh what a competition
But Jah is mi highest region
Rocking trough revelation
Chanting to Jah holy nation