Hi,

Please help writing a smarter LiquidSoap script.

A news file should be transmitted on the following schedule:
06:00, 07:00, 08:00
18:00, 19:00, 20:00

I tryed setting up lines like the following for each hour:
default = fallback(track_sensitive = false, [ switch ([({20h0}, news)]),
default])

News and Music are defined as following:
music = playlist(mode='random', "/radio/music/")
news = single("/radio/news/news.mp3")

It runs ok, when only the 18—20 hours lines are present.
The problem arises when the morning lines are added:
liquidsoap (1.0.0. beta 2) process takes lots of CPU % and starts lagging.

I suppose this is related to a conflict of times. Maybe {6h0} is considered
equal both to 6am and 6pm?

Also, what would be a smart way of writing the expression in one line?
Something like
default = fallback(track_sensitive = false, [ switch ([({18h-20h} or
{06h-08h} and {0m0s}, news)]), default])


Kind regtrads,
Sergei Sokolov
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to