Hi,

Since I cannot use the 'switch' statement before vars (sources) are  
declared,
I've run into a liitle problem. Some shows are not scheduled daily, but
liquidsoap still attempts to *verify* the code for that show whether or not
it is scheduled for that day. The result: 'that source is fallible' error,
and liquidsoap will not start -- very bad :(

Audio for each day's shows is automatically generated once a day before the
day's programming begins, and are placed in each show's file area.

I would like to place some kind of conditional statement, in  
'liquidsoap.liq',
above these non-daily shows that will determine whether they should be
*visible* or *executed* by liquidsoap that day.

If I utiliize a 'switch' statement, I will run into 'unbound symbol' error
again if I attempt to associate it with the program that I'm trying to a
control.

Perhaps the 'execute_at' statement might work. I need some way of using the
time-schedule switch, but merely to control whether that program's section
is to be read by liquidsoap.liq or not.


********


Excerpt from 'liquidsoap.liq' showing switch & a non-daily show


morning = switch(

     track_sensitive=true,

     [

       ({09h00-9h30}, sstol),
       ({09h30-10h00}, mfts),
       ({1w or 3w or 5w and 10h30-11h00}, ogp),
       ({2w or 4w and 10h00-10h30}, woas),
       ({10h30-11h00}, coc),
       ({11h00-11h40}, csr),
       ({11h40-12h00}, cosm)

     ]

)



## This will be checked every day, but will throw an error if not on  
Monday,
## Wednesday, or Friday. I need a switch to prevent this from happening.

ogp =  
request.queue(queue=[request.create("/usr/local/www/rcr/mp3/announce/TOHN.mp3"),
                              
request.create("/usr/local/www/rcr/radio/current/mp3/announce/opener/opener-ogp.mp3"),
                              
request.create("/usr/local/www/rcr/radio/current/mp3/ogp/today/today-ogp-32.pls"),
                             
request.create("/usr/local/www/rcr/mp3/announce/CLOSER.mp3"),
                              
request.create("/usr/local/www/rcr/radio/current/mp3/ogp/today/ogp-mp3-end-32.pls")])
                                
scmp3 = fallback([ogp,security])
scmp3 = crossfade(start_next=0.7, fade_in=0.2, fade_out=0.2, ogp)


******

Any ideas how I can solve this problem?

Thanks,
Andre


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to