From: Samuel M. <sm...@gm...> - 2013-12-19 08:21:38
|
Hi, With this order, it should effectively work as you expect. Excepting that the random does not guarantee to have 1 jingle followed by 2 songs: these are just randomly chosen with songs having twice the probability of jingles to be played (you could have five jingle in a row, but in the long run you should have hears twice more songs than jingles). Cheers, Samuel. On Mon, Dec 16, 2013 at 4:54 PM, wi...@ra... <wfb...@wp...> wrote: > Hi! > > Thanks for your answer, but it doesn't solve my trouble. > > I changed order in this entry: > radio = fallback(track_sensitive = false, [timed_promotions, radio, security]) > and it works same as earlier. > > Dnia Sobota, 14 Grudnia 2013 20:26 Frits Letteboer <fr...@fr...> napisał(a) >> On 14-12-13 20:22, wi...@ra... 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 >> Sav...@li... >> https://lists.sourceforge.net/lists/listinfo/savonet-users > > > > > ------------------------------------------------------------------------------ > 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 > Sav...@li... > https://lists.sourceforge.net/lists/listinfo/savonet-users |