the full script is this
myplaylist = playlist(mode="random",reload=300,"/srv/backup/music")
# If something goes wrong, we'll play this like a startup
startup = playlist("/srv/backup/startup")
# If something goes wrong, we'll play this
security = single("/srv/backup/drops/station.mp3")
#
# jingles
jingles = playlist(mode="random",reload=300,"/srv/backup/jingles")
#
# stationid
stationID = playlist(mode="random",reload=300,"/srv/backup/stationid")
#*********Create Some Schedule Event********************************
# This type of schedule will cause the music to stop
# The trick to make a seperate variable for schedule
# when the time reach liquidsoap knows something happen jumps to fall back and see there is a schedule
# It plays the fall back it first meets
# try to space your timing more appropriately this is just a sample
# this is a hourly break out
# it makes better use of carts like(jingle,promo,beds,station ID)
schedule=
add([
switch([
({ 0m00s },delay(1.,jingles)),
({ 0m30s},delay(1.,stationID)),
({ 03m10s},delay(1.,jingles)),
({ 15m00s},delay(1.,stationID)),
({ 25m00s},delay(1.,jingles)),
({ 30m00s},delay(1.,stationID)),
({ 32m00s},delay(1.,jingles)),
({ 35m00s},delay(1.,jingles)),
({ 45m00s},delay(1.,stationID)),
({ 45m40s},delay(1.,jingles)),
({ 50m00s },delay(1.,jingles)),
])
])
#******Start building the feed with music*************************************
# Start building the feed with music by assigning to the same clock (variables)
mymusicbackup = mksafe(myplaylist)
mystartup = startup
#******Feed with music*************************************************
# And now to play the back up music when something goes wrong
playmymusicbackup=rotate(weights = [1,4],[mystartup,mymusicbackup])
#********Processing Section*****************************************
#*******Fallback to schedule with music************************************
# Fall back for Music track_sensitive=false,because we want the music pause/stop then
# play the schedule and start again
playmymusicbackup = fallback(track_sensitive = false,[schedule,playmymusicbackup])
#*******Fallback to default**********************************************
#And finally the security
default = fallback(track_sensitive = false,[schedule,playmymusicbackup,security])
#^^^^^^^^^^^^^^^End Of Modification^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
So you need to have most of this for it to work.
you cannot just take one section and put it in the script that is why you are having variable missing error
please become familiar with the syntax
VOISSES
It looks like you're new here. If you want to get involved, click one of these buttons!