I'd been hunting for a script that would let me generate a random playlist of oggs/mp3s that would take into account the size limits of my removable media, currently a 256MB compact flash card. I couldn't find one so I wrote one myself, and thought some of you might like to give it a whirl. http://clevername.homeip.net/scripts/groggs
This from the comments: # groggs - get random oggs (and mp3's) # by Todd Slater # # Generate a random ogg/mp3 playlist for portable players # based on the size of the media, i.e. a 256MB compact flash card. # I got tired of trying to copy a directory to the card and getting # out of space errors! # # USAGE # # Set up the variables below. # # The first time you run it, the script creates a directory to store # your masterlist--a list of all your tunes--and your playlist(s). # # In generating the playlist, it stops if the tune to be added exceeds # the maximum size you allow it. # # By default the script copies the tunes in the playlist to your media # and then removes the local playlist. # # The only options are: # -b blast (erase) your media to accomodate your tunes # -l list only--does not copy tunes to your media; nice for local # playback # -n specify name of list (default is randomlist.m3u) # -r rescan your tunes directories and create a new masterlist # # Note that my player does not accept .m3u playlists, so this script # does # not keep the playlist around after it runs. (unless you use -l) -- Name that tune #12: Let's stop off at the Metroplex, that little dancer's got some style; she's the one I'll be waiting for at the stage door.
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com