Doh, sorry for the double post. Not sure what happened.
I just had a thought, what about making the playlists for a directory also contain all the mp3s? So that if you had c:/mp3s/cd/1 and c:/mp3s/cd/2 you'd end up with a m3u in c:/mp3s/cd that had both dirs in it's playlist.
Just add a:
return @songs;
and change
handle_dir("$dir/$file");
to
unshift @songs, handle_dir("$dir/$file"); |