Hi Guys,
Sorry if this is something simple that I'm missing!
Below is my script and my time based switch dosent seem to work! If i start
the script manually after 23h30 then it will be in automation and if i start
it manually after 8.59 it will be studio1, however it dosent seem to want to
automatically switch for me! Am i doing something wrong here?
Thanks!
Scott
*--
Scott Robinson
**Radio Sonar
[Sonar Media] Head of Systems
**E: *syst...@radiosonar.co.uk
*M: *+44 7704 900 554
*W:* http://radiosonar.co.uk
*O: *+44 2380 319 920
*P: *Radio Sonar, Southampton Solent SU, East Park Terrace, Southampton,
SO14 0YN
################
# Liquidsoap Settings
################
set("log.file.path","/var/log/radiosonar-liquidsoap.log")
set("frame.size",4704)
set("log.stdout", true)
set("server.telnet", true)
set("playlists.mime_types.xml",["audio/x-scpls"])
################
################
# Icecast Settings
################
iceHost ="localhost"
icePort =8000
iceUser ="source"
icePassword =""
iceGenre ="Student Radio"
iceUrl ="http://www.radiosonar.co.uk"
iceDesc ="Radio Sonar - Southampton Solents Student Radio Station"
#################
################
# Inputs / Outputs
################
studioInput1 = input.jack(id="studioInput1")
studioInput2 = input.jack(id="studioInput2")
irnInput = input.jack(id="irnInput")
DAOutput = output.jack(id="DAOutput")
StudioOutput = output.jack(id="StudioOutput")
###############
################
# Playlists / Files
################
default = single("~/default.mp3")
blank = single("~/blank.mp3")
newsJingle = single("~/news.mp3")
aListPLS = playlist("/home/sonar/scripts/pls/alist.pls")
bListPLS = playlist("/home/sonar/scripts/pls/blist.pls")
cListPLS = playlist("/home/sonar/scripts/pls/clist.pls")
jinglesPLS = playlist("/home/sonar/scripts/pls/jingles.pls")
###############
################
# Build Automation
################
AutomationList = random (weights = [3,2,2],[aListPLS,bListPLS,cListPLS])
Automation = random (weights = [1,2],[jinglesPLS,AutomationList])
Automation = smart_crossfade(fade_out=1.0,fade_in=1.0,Automation)
###############
LiveStream = switch([({ 8h59-23h30 }, studioInput1),({ 23h30-8h59 },
Automation)])
LiveStream = mksafe(LiveStream)
LiveStream = rewrite_metadata([("artist","Radio Sonar"),
("title","Radio Sonar Live Stream")],LiveStream)
studio1 = mksafe(studioInput1)
studio1 = rewrite_metadata([("artist","Radio Sonar"),
("title","Radio Sonar Studio 1 Feed")],studio1)
studio2 = mksafe(studioInput2)
studio2 = rewrite_metadata([("artist","Radio Sonar"),
("title","Radio Sonar Studio 2 Feed")],studio2)
################
# Audio Logging
################
#################
# Icecast Mounts
#################
output.icecast.mp3(LiveStream,mount="streamhi.mp3",id="streamHi",name="Radio
Sonar (128Kbps)",quality=8,bitrate=128,
host=iceHost,port=icePort,user=iceUser,password=icePassword,genre=iceGenre,url=iceUrl,description=iceDesc,
restart=true)
output.icecast.mp3(LiveStream,mount="streamlow.mp3",id="studioLow",name="Radio
Sonar (64Kbps)",quality=8,bitrate=64,
host=iceHost,port=icePort,user=iceUser,password=icePassword,genre=iceGenre,url=iceUrl,description=iceDesc,
restart=true)
#################
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users