Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Perl program to connect to itunes and parse files (mostly related to playlist attribute)

by jesuashok (Curate)
on Sep 10, 2016 at 08:00 UTC ( #1171504=perlquestion: print w/replies, xml ) Need Help??
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1171504]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2019-04-26 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (128 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!