http://www.perlmonks.org?node_id=1171504

jesuashok has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

Could you give some ideas for a perl module (or if anyway) to parse music files added in my iTunes?

What's the objective of this

I have more than 5000+ songs in my iTunes. I like to parse through files in my iTunes and find out how many are added to Playlist and what files NOT ADDED to Playlist yet. I might remove those files not added to Playlist.

Cheers, thanks in-advance.
  • Comment on Perl program to connect to itunes and parse files (mostly related to playlist attribute)

Replies are listed 'Best First'.
Re: Perl program to connect to itunes and parse files (mostly related to playlist attribute)
by Anonymous Monk on Sep 10, 2016 at 08:22 UTC
    Isn't it all stored in an xml file? I think so yes, so just use libxml or twig to read said file ... profit
      Thanks so much. I found that there is a file in my iMac /Users/user_name/Music/iTunes/iTunes Music Library.xml. I have also looked at the XML file and found how the track and it's ids are associated in the playlist. I'll play around.