#!/usr/bin/liquidsoap # Log dir set("log.file.path","/tmp/basic-radio.log") # Music Day = mksafe(audio_to_stereo(playlist(reload=1800,"/home/ghtk/radio/Day/"))) Night = mksafe(audio_to_stereo(playlist(reload=3600,"/home/ghtk/radio/Night/"))) # Start building the feed with music Radio = switch(track_sensitive = true, [({6h00m00s-22h59m59s},Day),({23h00m00s-5h59m59s},Night)]) # Stream it out output.icecast (%mp3(bitrate=192), host = "localhost", port = 8000, password = "424242", mount = "radio", Radio)