Monday, April 23, 2012

Create Playlist for Android Device

Today, I stumble upon this blog on creating playlist for Android device.  What a life saver it is.  It is great to have large capacity memory card for your musics, however, it is can be a pain to create playlist.

Anyway, this blog (http://foss-boss.blogspot.co.uk/2009/11/create-mega-playlists-from-your-pc.html) just makes things so easy.

However, I would like to add some of my inputs to it.  The command

dir /b > playlist.m3u

works great if you have all your mp3 in a flat file structure, i.e. no directories.  However, if you have sub-directories, you need to do a bit more than running the command, and here are the steps:

1) dir /s /b > playlist.m3u
2) open the playlist.m3u with a text editor
3) use find and replace to remove any trace of parent directory path.  For instance, if you are in c:\media\mp3 and your playlist.m3u is within this directory, then you need to search for all trace of c:\media\mp3, and replace with blank.
4) use find and replace to look for backward slashes (\), and replace them with forward slashes (/)
5) Save the file, and you are good to go!