Reputation: 16523
I want to point a python script to my iTunes directory and extract the playlist information. I believe playlist information is in a .ITL file? How can I do this using python?
Upvotes: 5
Views: 3218
Reputation: 3519
The iTunes library xml file is in the same directory as the .itl file. The file is in Apple plist format, and Python's standard library has a good parser for it.
Upvotes: 4
Reputation: 12241
According to Apple there should also be an xml file in the same location with the express purpose of making your music and playlists available. Try using one of pythons many xml parsers to get that information. For example, minidom.
Upvotes: 2