Dear all,
Thank you very much to all for your responses, especially to David, Kyriakos 
and Brandon. I've found what was wrong in my script. Here's the actual one, 
that is working fine :

securite = playlist(mode="random","/home/mp3/securite/")
reveil = playlist(mode="random","/home/mp3/reveil/")
matin = playlist(mode="random","/home/mp3/matin/")
apres_midi = playlist(mode="random","/home/mp3/apres_midi/")
soiree = playlist(mode="random","/home/mp3/soiree/")
nuit = playlist(mode="random","/home/mp3/nuit")
jingle08 = single("/home/mp3/jingle08/jingle08.mp3")
jingle23 = single("/home/mp3/jingle23/jingle23.mp3")
jingle38 = single("/home/mp3/jingle38/jingle38.mp3")
jingle53 = single("/home/mp3/jingle53/jingle53.mp3")
pubs15 = playlist(mode="normal","/home/mp3/pubs15/pubs15.m3u")
pubs30 = playlist(mode="normal","/home/mp3/pubs30/pubs30.m3u")
pubs45 = playlist(mode="normal","/home/mp3/pubs45/pubs45.m3u")
clock = single("home/mp3/tops_horaires/top_horaire.mp3")

music = fallback([ queue,
                   switch([({ 05h-09h }, reveil),
                               ({ 09h-13h }, matin),
                               ({ 13h-17h }, apres_midi),
                               ({ 17h-23h }, soiree),
                               ({ 23h-05h }, nuit)]),
                               securite])

# Add clock and promotions
radio = fallback([ queue,
                       switch([({ 0m0s-05m0s }, delay(1.,clock)),
                                   ({ 8m0s-11m0s }, delay(1.,jingle08)),
                                   ({ 15m0s-21m0s }, delay(1.,pubs15)),
                                   ({ 23m0s-26m0s }, delay(1.,jingle23)),
                                   ({ 30m0s-36m0s }, delay(1.,pubs30)),
                                   ({ 38m0s-41m0s }, delay(1.,jingle38)),
                                   ({ 45m0s-51m0s }, delay(1.,pubs45)),
                                   ({ 53m0s-56m0s }, delay(1.,jingle53))]),
                                   music])

s = fallback(track_sensitive=true, [radio,queue])
s = normalize (s)
s = nrj(s)

Jean-Noël
http://radiomandarine.fr/radiomandarine.pls


------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to