Hi,

Thanks for your script, it confirms what I said. Just change
playlist.safe(..) into playlist(..) which will use a queue. If you do
this, liquidsoap will refuse the script until you do something to deal
with possible failures of track preparation.

Easy solution: playlist=mksafe(playlist) somewhere after the first definition.

Probably more likeable solution:
  jingle = single("failure.mp3") # a valid local file containing a short jingle
  playlist=fallback([jingle,playlist]) # plays jingle when playlist fails

If the jingle is long, or in general if you want it to be aborted as
soon as the playlist gets ready again, pass track_sensistive=false to
the fallback. Otherwise, as it is, it will only give a chance for the
playlist to come back at the end of a jingle.

The lesson here is that playlist.safe() is trickier than it looks.

Have fun,
-- 
David

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to