Last active
December 14, 2015 17:49
-
-
Save donSchoe/5125102 to your computer and use it in GitHub Desktop.
liquidsoap script for old prr shoutcast stream
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/liquidsoap | |
# Enable logging | |
set("log.file.path","/path/to/log/<script>.log") | |
# Shoutcast stream details | |
shout = output.shoutcast(%mp3, host="0.0.0.0",port=0000, | |
password="00000000000000",genre="Punkrock",url="http://punkrockers-radio.de", | |
name="Punkrockers-Radio.de mit neuem Stream, dieser hier wird abgestellt!", | |
public=false,irc="irc://irc.jdqirc.net:6667/#punkrockers") | |
# Generate fallback playlist | |
musiclist = playlist(reload=21600,"/path/to/Playlists/prrlist.m3u") | |
musiclist = mksafe(musiclist) | |
musiclist = normalize(musiclist) | |
musiclist = smart_crossfade(musiclist) | |
musiclist = skip_blank(musiclist) | |
# Grab new stream | |
newstream = input.http("http://localhost:8000/prr") | |
# Play annoying jingle every 120 seconds | |
announce = single("/path/to/announce.mp3") | |
announce = normalize(announce) | |
announce = delay(120.,announce) | |
# Mix stuff accordingly | |
playlist = fallback([announce,newstream]) | |
playlist = fallback([playlist,musiclist]) | |
# Final output | |
shout(playlist) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment