rendered paste bodyintro = playlist("intro.pls")
backup = playlist.safe("playlist.pls")
new = input.http.mp3("http://radio.ruggednorth.com:80/new")
oldschool = input.http.mp3("http://radio.ruggednorth.com:80/oldschool")
nc17 = input.http.mp3("http://radio.ruggednorth.com:80/nc17")
cygnal = input.http.mp3("http://radio.ruggednorth.com:80/cygnal")
def once(s)
sequence([s,fallback([])])
end
def transition(a,b)
add(normalize=false,
[ fade.initial(b),
sequence(merge=true,
[blank(duration=1.),once(intro)]),
fade.final(a) ])
end
offair = fallback(track_sensitive=false, transitions=[ transition, transition ],
[switch(track_sensitive=false,
[({ 2h-10h }, oldschool),
({ 10h-2h }, new)]),
backup])
def radio
src = fallback(track_sensitive=false, transitions=[ transition, transition ],
[switch(track_sensitive=false,
[({ 4w19h-4w21h }, cygnal),
({ 3w23h36m-3w23h37m }, oldschool),
({ 7w17h-7w19h }, nc17)]),
offair])
add([src, switch([({0s},intro)])])
end
output(radio)