default = single("/mu/test.mp3") day=playlist(reload=5,"****//neformatnoe.ru/*******/php/testplaylist.php") night=playlist(reload=5,"****//neformatnoe.ru/*****/php/testplaylist.php") clock = single("/mu/test.mp3") radio = fallback([ request.queue(id="request"), switch([({ 6h-22h }, day), ({ 22h-6h }, night)]), default]) # And the clock jingle radio = add([radio, switch([({59m56s},clock)])]) # Add the ability to relay live shows full = fallback(track_sensitive=false, [input.http("****://localhost:8777/online"), radio]) # Output the full stream in OGG and MP3 output.icecast.lame( host="localhost",port=8777,password="*******", mount="live",url="www.****.ru",description="Neformatnoe Radio",full)
def my_request_function() = # Get the first line of my external process result = list.hd( get_process_lines("my_script my_params")) # Create and return a request using this result request.create(result) end # Create the source s = request.dynamic(my_request_function)
#!/usr/bin/liquidsoap set("log.file.path","/*****.ru/log/<script>.log") set("log.stdout", true) set("server.telnet", true) def my_request_function() = # Get the first line of my external process result = list.hd( get_process_lines("******/php/testplaylist.php")) # Create and return a request using this result request.create(result) end default = single("/mu/test.mp3") day=request.dynamic(my_request_function) night=request.dynamic(my_request_function) clock = single("/mu/test.mp3") radio = fallback([ request.queue(id="request"), switch([({ 6h-22h }, day), ({ 22h-6h }, night)]), default]) radio = add([radio, switch([({59m56s},clock)])]) full = fallback(track_sensitive=false, [input.http("***localhost:8777/online"), radio]) output.icecast.lame( host="localhost",port=8777,password="*****", mount="live",url="***.ru",description="Neformatnoe Radio",full)
#!/usr/bin/liquidsoap set("log.file.path","/*****.ru/log/<script>.log") set("log.stdout", true) set("server.telnet", true) def my_request_function() = uri = get_process_output("/usr/bin/php ******/php/testplaylist.php") log (label="next_track",level=1,"#{uri}") request.create(uri) end radio = request.dynamic(id="playlist", my_request_function) clock = single("/mu/test.mp3") radio = add([radio, switch([({59m56s}, clock)])]) radio = crossfade(start_next=3., fade_out=5., fade_in=1., mksafe(radio)) input = input.http("***localhost:8777/online") full = fallback(track_sensitive=false, [input, radio]) output.icecast.lame( host="localhost",port=8777,password="*****", mount="live",url="***.ru",description="Neformatnoe Radio", mksafe(full))