#!/usr/bin/liquidsoap -d set("init.daemon",true) set("init.daemon.pidfile",false) # Log dir set("log.file.path","/tmp/basic-radio.log") #Плейлист дневной day = (audio_to_stereo(playlist(reload=1800,"/home/ghtk/radio/Day/"))) #Плейлист ночной night = (audio_to_stereo(playlist(reload=3650,"/home/ghtk/radio/Night/"))) #Джинглы jingles = (audio_to_stereo(playlist("/home/ghtk/radio/Jingles"))) #Запуск плейлиста radio = mksafe(switch([({ 7h00m00s-22h59m59s }, day), ({ 23h00m00s-6h59m59s }, night)])) #Запуск джинглов radio = rotate(weights = [1, 4],[jingles, radio]) radio = crossfade(start_next=1.,fade_out=2.,fade_in=1.,radio) #Запуск радио output.icecast(%mp3(bitrate=192), host = "localhost", port = 8000, password = "424242", mount = "live", radio)