Fantastic thank you! Sent from my iPad
On 2013-03-19, at 16:10, Samuel Mimram <[email protected]> wrote: > Hi, > > merge_tracks is applied when the source is played, not at creation. So, > > merge_tracks(playlist.once(reload_mode="watch", "playlist")) > > should be what you need! The watch reload_mode will moreover reload > the contents of the playlist when it is changed (so, no need to > overwrite the files). > > ++ > > Sam. > > On Tue, Mar 19, 2013 at 8:04 PM, Kevin McQuiggin <[email protected]> wrote: >> HI Samuel: >> >> One problem with this approach might be that I will be updating the tracks >> in the "news" playlist throughout the hour. When the news.pls is played >> when triggered by "switch" I will get the most recently updated audio files. >> >> news.pls contains for example: >> >> /home/news/a.ogg >> /home/news/b.ogg >> /home/news/c.ogg >> >> And I want to be able to update/replace these audio files in /home/news >> every hour through an external crontab script. >> >> When the switch() construct triggers, I want to play a.ogg; b.ogg; and c.ogg >> based on the current data in /home/news. >> >> I can leave the news.pls constant and simply update the audio files as the >> news changes. >> >> I am guessing that merge_tracks() performs its function once when the source >> is created. This would not allow for updating of the individual audio files >> in the news.pls playlist. >> >> Am I correct? >> >> Kevin >> >> On 2013-03-19, at 11:54 AM, Samuel Mimram <[email protected]> wrote: >> >>> Hi, >>> >>> Here is what I have on the top of my head. You can use something like >>> >>> merge_tracks(playlist.once("my_playlist")) >>> >>> which will merge all the tracks of a playlist, i.e. turn it into one >>> big track. The downside is that you loose metadata from individual >>> tracks, but this is all I could come up with for now... I hope it's >>> enough for you, but maybe someone will think of a better idea? >>> >>> ++ >>> >>> Sam. >>> >>> On Tue, Mar 19, 2013 at 7:08 PM, Kevin McQuiggin <[email protected]> wrote: >>>> Hi All: >>>> >>>> Thank you to all for the help with my earlier question. LS is fantastic >>>> but I am being challenged getting my head around the scripting language. >>>> >>>> I would like to use a switch statement to switch to a particular playlist >>>> at a specified time, and then play the -entire- playlist before returning >>>> to the other stream. Is this possible? >>>> >>>> I have tried: >>>> >>>> switch([ ({0m0s}, news), >>>> ({30m0s}, news) >>>> ]), >>>> music, security]) >>>> >>>> but this simply switches to the "news" playlist, plays a -single- >>>> selection, and then returns to the normal music stream. >>>> >>>> I'd like to have the switch play an -entire- playlist when triggered, >>>> before going back to the next available stream. >>>> >>>> Any suggestions? Obviously I am new to LS! >>>> >>>> Kevin >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Everyone hates slow websites. So do we. >>>> Make your web apps faster with AppDynamics >>>> Download AppDynamics Lite for free today: >>>> http://p.sf.net/sfu/appdyn_d2d_mar >>>> _______________________________________________ >>>> Savonet-users mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/savonet-users >>> >>> ------------------------------------------------------------------------------ >>> Everyone hates slow websites. So do we. >>> Make your web apps faster with AppDynamics >>> Download AppDynamics Lite for free today: >>> http://p.sf.net/sfu/appdyn_d2d_mar >>> _______________________________________________ >>> Savonet-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/savonet-users >> >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_d2d_mar >> _______________________________________________ >> Savonet-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/savonet-users > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > Savonet-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/savonet-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
