Skip to content

Instantly share code, notes, and snippets.

@mcfiredrill
Created February 17, 2013 07:43
Show Gist options
  • Save mcfiredrill/4970578 to your computer and use it in GitHub Desktop.
Save mcfiredrill/4970578 to your computer and use it in GitHub Desktop.
on_connect error
set("log.file",false)
set("log.stdout",true)
set("log.level",3)
set("harbor.bind_addr","0.0.0.0")
def harbor_connect(headers)
log(headers)
log("harbor connect")
end
backup_playlist = playlist(reload=600,"~/grimeyblimey.m3u",conservative=true)
output.dummy(fallible=true,backup_playlist)
on_fail = single("/home/tony/samples/vox/datafruitsdotfm_processed.wav")
dj = input.harbor("dj",port=9000,password="hackme", on_connect=harbor_connect)
source = fallback(track_sensitive=false,[dj,backup_playlist,on_fail])
output.icecast(%vorbis, host = "localhost", port = 8000, password = "hackme", mount = "liq.ogg", input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment