Hi, I'm happy to hear that the explanation worked for you.
On Wed, Dec 15, 2010 at 4:51 PM, Normando Hall <[email protected]> wrote: > I will try to made an external perl > script to "simulate" how LS will perform the playlists and switches, and > write down in a text file. Are you thinking of automatically transforming the liquidsoap script into a testing form? That would be sweet, but it's also a hard task. I had something simpler (but already not so simple) in mind. For example: debug = ... # true or false def logger(s) = on_metadata(print_to_file,s) end def stop(s) = on_track(shutdown_if_enough_time,s) end def output(s) = if debug then clock(sync=false,output.dummy(stop(logger(s)))) else output.icecast(....,s) end def date(...) = if debug then ... else ... end Then write you script using output for the final output, and date in the switch, for example switch([({date("8h-12h")},morning),...]). It seems that before looking at the perl script there is some non-trivial work to do on date(). What I wrote is quite random and very far from a concrete implementation. Note that you won't be able to use liquidsoap's builtin intervals (8h-12h) because they rely (in a hardcoded way) on the time of the day. We could help you a little bit by enabling some customizability here. But you may be able to manage without any change in liquidsoap, if you have simple switching predicates. For example if you can write everything as a test on the hour (hour()>=8 and hour()<=12) you just have to write an hour() function that has a debug mode. Have fun, -- David ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
