On 14-12-13 20:22, [email protected] wrote: > Hi everyone! > > I have created a script for liquidsoap which looks like that: > > CODE ---- > #!/usr/bin/liquidsoap > set("log.file.path","/tmp/basic-radio.log") > > plist = > playlist("/home/stream/domains/4stream.pl/pilot/804/playlists/main.lst") > jingles = > playlist("/home/stream/domains/4stream.pl/pilot/test/playlists/jingle.pls") > promotions = > playlist("/home/stream/domains/4stream.pl/pilot/test/playlists/promotions.pls") > security = single("/home/stream/domains/4stream.pl/pilot/rescue.mp3") > > radio = random( weights = [1,2], [jingles,plist] ) > timed_promotions = delay(120.,promotions) > radio = fallback(track_sensitive = false, [radio, timed_promotions, security]) > /CODE ---- > > I see it like: plist plays 2 random songs, then one random jingle, and every > 120 seconds it will shedule a jingle from promotions. > > It plays completely randomly. What do i wrong?
I'm not a LS-guru, but I think you need to swap radio and timed_promotions, so it becomes: radio = fallback(track_sensitive = false, [timed_promotions, radio, security]) ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
