lollercoaster
lollercoaster

Reputation: 16523

How to extract playlists (list of file locations) from iTunes using python

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

Answers (2)

Chris
Chris

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

thegrinner
thegrinner

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

Related Questions