#!/usr/local/bin/liquidsoap set("init.daemon",true) set("init.daemon.pidfile",false) set("log.file.path","/tmp/liquidsoap.log") hot = mksafe(playlist(reload=600, mode='random', '/home/belradio/win/radio/HOT')) new = mksafe(playlist(reload=600, mode='random', '/home/belradio/win/radio/new')) club = mksafe(playlist(reload=600, mode='random', '/home/belradio/win/radio/club')) old = mksafe(playlist(reload=600, mode='random', '/home/belradio/win/radio/old')) rus = mksafe(playlist(reload=600, mode='random', '/home/belradio/win/radio/rus')) morning = rotate(weights = [3, 1, 2, 1], [rus, new, hot, club]) afternoon = rotate(weights = [2, 4, 2, 1], [new, hot, club, old]) evening = rotate(weights = [1, 3, 5], [new, hot, club]) night = rotate(weights = [6, 1], [club, new]) play = switch([ ({0h-7h}, morning), ({7h-24h}, evening) ]) radio = crossfade(start_next=6.,fade_out=5.,fade_in=3.,play) output.icecast(%mp3, mount="/nonstop", host="127.0.0.1", port=8000, password="*****", genre="top", url="http://belradio.net", description="BelRadio Nonstop", name="BelRadio.NET", radio )
#!/usr/local/bin/liquidsoap set("init.daemon",true) set("init.daemon.pidfile",false) set("log.file.path","/tmp/liquidsoap.log") electro = mksafe(playlist(reload=10, mode='random', '/home/music/electro')) jingles = mksafe(playlist(reload=10, mode='random', '/home/music/jingles')) club = mksafe(playlist(reload=10, mode='random', '/home/music/jingles')) morning = rotate(weights = [1, 3, 6], [jingles, club, electro]) afternoon = rotate(weights = [1, 4, 3], [jingles, club, electro]) evening = rotate(weights = [1, 3, 3], [jingles, club, electro]) night = rotate(weights = [1, 3, 4], [jingles, club, electro]) play = switch([ ({0h-7h}, night), ({7h-12h}, morning), ({12h-17h}, afternoon), ({17h-24h}, evening), ({0h-7h}, night) ]) radio = crossfade(start_next=6.,fade_out=5.,fade_in=3., mksafe(play)) output.icecast(%aacplus, mount="/nonstop", host="127.0.0.1", port=8000, password="123456789", genre="all", url="http://", description="my radio", name="my radio", radio )