Thanks Brandon! That's some sweet -- never thought of it. I've been busy getting the 'New Season' together, and wanted an easy way to do this little interlude show.
Thanks a bunch! kronos On Wed, 05 Oct 2011 22:20:01 -0400, Brandon Casci <[email protected]> wrote: > Do a find files, and pipe the output to a .pls file. That will give you > an > instant playlist file from a directory. Example: > > find /home/brandon/Music/ -name *.mp3 > playlist.pls > > If you pipe the find output to shuf, you can get any number of random > files, > this gets you two: > > find /home/brandon/Music/ -name *.mp3 | shuf -n 2 > > I think you could find a way to generate a .pls file on demand with the > contents you need, or use request.dynamic to call a script that returns > the > files you want and put them into a LS queue > > > On Wed, Oct 5, 2011 at 10:04 PM, <[email protected]> wrote: > >> Sort of: this particular program is a 'filler' show - a ten-minute >> musical >> interlude. >> I want to draw from the named directory and pull probably two mp3 files >> randomnly. >> >> I start LS daily, using crontab and php to generate each day's unique >> shows. So, >> this show (10 minutes long) would probably play between 1 1/2 to 2 1/2 >> mp3 songs. It >> doesn't matter whether they finish (being a filler) since at the next >> timeslot, >> the interlude show will crossfade into the new timeslot's show. Hope >> that >> makes >> sense to you :) >> >> All I need to know: would LS draw on the directory (as I have written >> it) >> pull >> randomly some of the mp3 files, or do I need to specify them in a >> playlist? >> >> Thanks, >> kronos >> >> >> On Wed, 05 Oct 2011 21:53:28 -0400, Audiodef Online >> <[email protected]> >> wrote: >> >> > Are you thinking about having a dir in which you can place files >> without >> > having to update a playlist? >> > >> > On 10/06/11 01:33, [email protected] wrote: >> >> Hi Damien, >> >> >> >> Yes, I know - I use mode="normal" for all my playlists but this one. >> >> >> >> It would great if I could specify a directory rather than 'build' a >> >> playlist manually. >> >> If it's not possible to do this (play randomly the directory >> >> '/usr/local/www/rcr/mp3/music/Phillips/Saints_Among_Us') >> >> I'll have to build a playlist using fapg. Hope LS can save me a few >> >> steps :) >> >> >> >> Thanks, >> >> kronos >> >> >> >> >> >> >> > >> > >> > >> ------------------------------------------------------------------------------ >> > All the data continuously generated in your IT infrastructure >> contains a >> > definitive record of customers, application performance, security >> > threats, fraudulent activity and more. Splunk takes this data and >> makes >> > sense of it. Business sense. IT sense. Common sense. >> > http://p.sf.net/sfu/splunk-d2dcopy1 >> > _______________________________________________ >> > Savonet-users mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/savonet-users >> >> >> -- >> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >> >> >> ------------------------------------------------------------------------------ >> All the data continuously generated in your IT infrastructure contains a >> definitive record of customers, application performance, security >> threats, fraudulent activity and more. Splunk takes this data and makes >> sense of it. Business sense. IT sense. Common sense. >> http://p.sf.net/sfu/splunk-d2dcopy1 >> _______________________________________________ >> Savonet-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/savonet-users >> > > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
