itunes-playlist-converter
v1.1.1
Published
Converts itunes playlists
Downloads
1
Readme
##ITunes Playlist Converter
###NOTE: Does not currently in any way support windows. Coming soon!
Has one optional argument: the input directory path, defaults to current directory. Also takes the following options:
flags/switches
- "-h, --help" : Prints these switches to the console.
- "-v, --verbose" : Logs progress.
- "-t, --type" : Specifies type of playlist output, defaults to 'xspf'.
- "-m, --musicpath" : Path* to the Music files on the target device. Defaults to itunes path.
- "-o, --output" : Output path for converted lists. Defaults to input path with 'xml' replace by type.
*Absolute path. Relative paths are not currently supported for music file location.
This program takes an Itunes XML playlist and converts it to a more portable format. Point it at a directory of playlists and watch it do its thing.
If you've stumbled across this and you're not a programmer but you want to convert your playlists, first install node.js. Download and extract the zip of this project. Open a terminal window and navigate to the directory you unzipped this project to. Type 'make all' without the quotes. Watch the terminal spit stuff out at you for a minute or two, and assuming you didn't get a fatal error you're ready to start using the program to convert your lists. If you need help with any of that, google is your friend.
Mac OS X generally stores your music at /Users/YourUserName/Music/iTunes/iTunes Media/Music
. If
you're looking to move your playlists to another computer/mobile device, there will almost certainly
not be that directory structure for where your music files are stored. So you will have to specify
the path on the target machine. After that...
###Example
I have a bunch of Itunes music on my macbook that I want to put on my android phone. I plug my phone
into my computer and use android file transfer to copy the contents of my Music folder onto my phone's
microSD at /SD card/Android/media/Music
. So far so good, but I need my playlists that I want to
move to my phone to point at that location rather than the itunes folder on my Mac. So assuming that
I have my itunes playlists exported as XML files to a folder on my desktop called 'xmls' I use this
program to alter them by typing
node converter.js /Users/MyUserName/Desktop/xmls -m /storage/ext_sd/Android/media/Music -v
and hitting return. You'll see the terminal spit out a bunch of stuff and tell you when its finished. Now there should be (unless you got an error message) a folder on your desktop called 'xspfs' that has the modified playlists. You can now copy those playlists over to where your phone's music player expects them to be.
###Formats
This program defaults to the xspf universal playlist format, but suppose your music player on your other device wants m3u? Just modify the example above like so:
node converter.js /Users/MyUserName/Desktop/xmls -m /storage/ext_sd/Android/media/Music -t m3u -v
And you should see the playlists in a folder on your desktop called 'm3us'. Currently those two Formats are the only two supported.