Mac::iTunes::Library::Parse - parse the iTunes binary database file
***NOTE: This only works for the formats for iTunes 4.5 and earlier. After that, Apple changed the format and I haven't been able to suss it out. ***
This class is usually used by Mac::iTunes.
use Mac::iTunes; my $library = Mac::iTunes->new( $library_path );
If you want to fool with the data structure, you can use the parse functions.
use Mac::iTunes::Library::Parse; my $library = Mac::iTunes::Library::Parse::parse( FILENAME );
**This module is unmaintained**
Most functions output debugging information if the environment variable ITUNES_DEBUG is a true value.
Turn the iTunes Music Library into the Mac::iTunes object. It takes a filehandle to the open-ed iTunes Music Library file.
iTunes Music Library
The hdfm record is the master record for the library. It holds the iTunes aaplication version number.
The htlm record holds the number of lists. When we run into this record, remember the right number of playlists.
The htim record starts the Item object
The hohm record holds variable length data.
The hplm record starts a list of playlists.
The hpim record holds playlists
The hptm record holds a track identifier.
This source is in GitHub:
https://github.com/CPAN-Adopt-Me/MacOSX-iTunes.git
Mac::iTunes, Mac::iTunes::Item, Mac::iTunes::Playlist
* everything - the list of things already done is much shorter.
brian d foy, <bdfoy@cpan.org>
<bdfoy@cpan.org>
Copyright (c) 2002-2007 brian d foy. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Mac::iTunes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mac::iTunes
CPAN shell
perl -MCPAN -e shell install Mac::iTunes
For more information on module installation, please visit the detailed CPAN module installation guide.