Skip to content

Instantly share code, notes, and snippets.

@redraw
Created May 5, 2020 01:10
Show Gist options
  • Save redraw/65e1fe378cf5ee72558b008cf431dd0f to your computer and use it in GitHub Desktop.
Save redraw/65e1fe378cf5ee72558b008cf431dd0f to your computer and use it in GitHub Desktop.
#!/usr/bin/liquidsoap -v
set("log.stdout", true)
interim = single("~/Música/interim.mp3")
himno = single("~/Música/himno.mp3")
temas = playlist("~/Música/playlist")
radio = random(weights=[1,3], [interim, temas])
radio = add([radio, switch([({0m0s}, himno)])])
live = input.http("http://localhost:8000/radio.mp3")
radio = fallback(track_sensitive=False, [live, radio])
out.icecast(
%mp3,
host = "localhost",
port = 8000,
password = "hackme",
radio
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment