Hi David,

[Sorry -- I had just replied to the wrong post.] :(

I sort of figured that was the case. However, I'm totally stumped on how to
implement the syntax of mksafe to refer to the Switch Schedule . I need the
current time to refer to the correct show.

So, given that the ouput from show ID (of say, 'sstol') is 'icmp3', then to
have this output identifier be called in the 'Switch Schedule', using the
mksafe
operator, would it look like:

icmp3 = fill_in(sstol)

icmp3 = switch(mksafe(

       track_sensitive=true,

       [

         ({09h00-09h30}, sstol),
         ({09h30-10h00}, mfts),
         (... repeat for each show ...)         

       ]
       ))

output.icecast.mp3(...,icmp3)



The problem is: I don't know how to insert the mksafe operator within the
switch
statement.

I sense that what I've written above would not work for the reasons about
variables
you've stated. Perhaps if I renamed the variable for the switch to 'mp3'
and use
that variable as in the 'Output' section, it would work?



icmp3 = fill_in(sstol)

mp3 = switch(mksafe(

       track_sensitive=true,

       [

         ({09h00-09h30}, sstol),
         ({09h30-10h00}, mfts),
         (... repeat for each show ...)         

       ]
       ))

output.icecast.mp3(...,mp3)


I'm sorry if I appear totally clueless here. I am.


I'd just like to get this finished so it will switch at the current time
to the
correct show.

Thanks for your help,
Andre



On Fri, 28 Jan 2011 07:06:28 -0500, David Baelde <[email protected]>  
wrote:

> Hi,
>
> I don't have time to read in full details but I suspect a common mistake  
> here.
>
> On Thu, Jan 27, 2011 at 11:20 PM,  <[email protected]> wrote:
>> I assumed that since each show ID had
>> already been verified as infallible (through 'single' and  
>> 'playlist.safe')
>> I would not encounter any load errors.
>
> When you write foo = ... in one place of a script and foo = ... in
> another place, that's two definitions that are totally independent.
> You could rename one of them bar, it means the same. For example: foo
> = 1 ; foo = 2 ; print(foo) is the same as foo = 1 ; bar = 2 ;
> print(bar).
>
> So, it would be wrong for liquidsoap to assume that anything named
> icmp3 is infallible as long as one thing named that way is infallible.
> And indeed, it does not proceed that way.
>
> To deal with fallibility, you have the standard recipes, notably
> mksafe or fallback using a failsafe single.
>
> Good luck,


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

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to