i have airtime 2.0.3 and on silence i want liquidsoap to start broadcasting. 
only that i want it to play from a certain folder between certain hours.
i have folders for each of the shows and adapted a 
script for the ls_script.liq
still, it seems i have something wrong (i don't know to code). 
could someone tell me where? 


#default = amplify(0.00001, noise())
#default = rewrite_metadata([("artist","Airtime"),("title", "offline")],default)

p1 = playlist(mode='randomize',reload=1,
reload_mode="rounds", "/srv/users/plst1/")
p2 = playlist(mode='randomize',reload=1,
reload_mode="rounds", "/srv/users/plst2/")
p3 = playlist(mode='randomize',reload=1,
reload_mode="rounds", "/srv/users/plst3/")
p4 = playlist(mode='randomize',reload=1,
reload_mode="rounds", "/srv/users/plst4/")
p5 = playlist(mode='randomize',reload=1,
reload_mode="rounds", "/srv/users/plst5/")
p6 = playlist(mode='randomize',reload=1,
reload_mode="rounds", "/srv/users/plst6/")
p7 = playlist(mode='randomize',reload=1,
reload_mode="rounds", "/srv/users/plst7/")
p8 = playlist(mode='randomize',reload=1,
reload_mode="rounds", "/srv/users/plst8/")
p9 = playlist(mode='randomize',reload=1,
reload_mode="rounds", "/srv/users/plst9/")
p10 = playlist(mode='randomize',reload=1,
reload_mode="rounds", "/srv/users/plst10/")
p11 = playlist(mode='randomize',reload=1,
reload_mode="rounds", "/srv/users/plst11/")
p12 = playlist(mode='randomize',reload=1,
reload_mode="rounds", "/srv/users/plst13/")


default=switch([
        ({ 0h-2h}, p1),
        ({ 2h-3h}, p2),
        ({ 3h-4h}, p3),
        ({ 4h-5h}, p4),
        ({ 5h-8h}, p5),
        ({ 8h-10h}, p6),
        ({ 10h-11h}, p7),
        ({ 11h-13h}, p8), 
        ({ 13h-14h}, p9),
        ({ 14h-17h), p10),
        ({ 17h-19h}, p11),
        ({ 19h-20h}, p12),
        ({ 20h-22h}, p10),
        ({ 22h-0h}, p13)
        ])


thanks! 


p.s: the lines that define the playlists are written on two lines only here
because of the error i get when trying to post this thread 
(lines longer than 80 characters). in the ls_script.liq are 
written as they should


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to