From: Leonardo A. <leo...@we...> - 2014-04-08 15:04:02
|
How i can prevent repeat musics, before play all musics from a folder (we have a lot of repeats musics, before folder finish). My liq. file (is working without any problem, we have to correct only repeats): ============================ set("log.file.path","/log/1.log") set("init.daemon.pidfile.path","/var/run/liquidsoap/pi.pid") %include "/groove/include/utils.liq" c1 = playlist(mode="randomize",reload=1,reload_mode="rounds","/mp3/folder1/") c2 = playlist(mode="randomize",reload=1,reload_mode="rounds","/mp3/folder2/") c3 = playlist(mode="randomize",reload=1,reload_mode="rounds","/mp3/folder3/") c4 = playlist(mode="randomize",reload=1,reload_mode="rounds","/mp3/folder4/") c5 = playlist(mode="randomize",reload=1,reload_mode="rounds","/mp3/folder5/") c6 = playlist(mode="randomize",reload=1,reload_mode="rounds","/mp3/folder6") c7 = playlist(mode="randomize",reload=1,reload_mode="rounds","/mp3/folder7/") c8 = playlist(mode="randomize",reload=1,reload_mode="rounds","/mp3/folder8/") pa = random([c2,c3,c4,c6]) pb = random([c1,c5]) pc = random([c7,c8]) s = switch([({6h-13h},pa),({13h-17h},pb),({17h-6h},pc)]) s = map_metadata(append_title, s) s = map_metadata(append_artist, s) s = smart_crossfade(fade_out=0.5,fade_in=0.5,s) output.icecast(%mp3(bitrate=128),host="localhost",port=8000,fallible=true,password="xxx",user="xxx",mount="1",s ============================ Regards, Leonardo |