Hello,

I try to schedule 3 flux for my radio

I wrote this in my liq file

flux_courant = switch([({(3w or 5w or 7w) and 
23h-1h},playlist_semaine),({9h-9h30 or 12h-14h or 15h-17h or 15h10-17h 
or 18h-20h},playlist_test),({true}, ubu_sons)])

But the playlist_test never starts ! What's wrong ?

Two additionals questions :

 - I want my playlist_test and playlist_semaine to be played (at 9h for 
example) and return to the mainstream (ubu_sons) but with an interval 
like 9h-9h30 I think the playlist_test and playlist_semaine will be cut 
if too long or will restart if too short. Is there another command I can 
use ?

- What can I improve in my script ?

Here's my full liq file :


#!/usr/local/bin/liquidsoap -v
# Log dir
set("log.file.path","/home/synradio/LiquidScripts/synradio.log")

# Sons de UBU
ubu_sons = playlist(reload=600,mode="randomize","/home/synradio/sons/ubu")

#Playlist artistes
playlist_semaine = 
playlist("/home/synradio/sons/artistes/vgrancher/playlist_vgrancher.m3u")

#Playlist test
playlist_test = 
playlist("/home/synradio/sons/artistes/jcash/jcash_playlist.m3u")

# (1200 sec = 20 min)
#timed_playlist_semaine = delay(1200.,playlist_semaine)
#flux_courant = fallback(timed_playlist_semaine,ubu_sons])

#Playlists artistes ou Playlist aleatoire
flux_courant = switch([({(3w or 5w or 7w) and 
23h-1h},playlist_semaine),({9h-9h30 or 12h-14h or 15h-17h or 15h10-17h 
or 18h-20h},playlist_test),({true}, ubu_sons)])

# If something goes wrong, we'll play this
security = mksafe(playlist("/home/synradio/sons"))


#final mix
radio = fallback(track_sensitive = false, [flux_courant, security])

# Add the ability to relay live shows
full = fallback(track_sensitive=true,
             [input.http("http://localhost:8000/directsynradio.ogg";), 
radio])

# Stream it out
output.icecast.mp3(
host = "127.0.0.1", port = 8000,
name = "webSYNradio", description = "webSYNradio", genre = "sound
poetry",
user = "synradio",
password = "xxxxxx",
mount = "synradio.mp3",
bitrate=128, samplerate = 44100, stereo = true,
full)

-- 
Alexandre Lorieau

Association PING : accompagnement de projets multimédia
www.pingbase.net
[email protected]
tel : 02.40.16.86.78


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to