An update. I’m recovering from the crash, albeit slowly. At some point very soon I’ll be able to face job-hunting again. Then I have to work on my covering letters. Fun.

So, this week then. This week I have been mostly panicking. After the blitz on all the boxen in my room, I appear to have mislaid the foolscrap box-file containing all my official 1000 Elephants Club stuff. This, on the plus side, means I can’t actually spend any money on anything ATM. With every roundabout comes a swing….

I’ve put the scripts that generated the previous entry online. They are:

create-playlists

A list of directories is piped into this, and it creates playlists, one for every directory (ie, each album), one containing every song, one containing every song *with* extended information (Artist name etc.) gathered from a perl script called extinf_playlist.pl,

Needs $PLAYLISTS $THISHOST [$NUMBER] Where $PLAYLISTS is the root directory of all these playlists, $THISHOST is the name of the computer being used, and $NUMBER is now many to process (Not required, but nice)

update-playlists

This is where the magic happens.
First, it checks the directory structure it’s using to make sure it’s writable, then it takes an argument of what directory you want to index, which it recursivly searches for directories using find, then it feeds the list of directories to create-playlists. Next it sends the entire thing though “rndln” which randomizes the lines of a file and outputs it again, producing a totally random file. Then it does it again, feeding each line though extinf_playlist.pl, which returns the artist information, creating a random playlist with extended information (Which loads quicker in the player, since it doesn’t scan the files for this, since it’s in the playlist). Then it takes the output of the above and sends it though a sed script which changes all the paths to windows paths (This assumes you’ve mounted your home directory as a windows share on h:, like I have), finally creating a version fed though the variable “$SECRETSCRIPT”, which turns it into a locally hosted web-version. (Allowing me to stream media over the network via http. No, the host it points to is not availible to the outside world :-P)
As an encore, it runs “listmp3s” which recursivly searches the directory for MP3s, and then lists them in HTML format.

Danger, this is hackerware, it *will* need editing for your personalised version.

listmp3s $DIRECTORY

Lists all mp3s in directories below $DIRECTORY in a neatocool HTML format. As here.

And i’m going to have to buy the Moulin Rouge sound-track & DVD. Bugger