NAME

Mac::iTunes::Library::Parse - parse the iTunes binary database file

SYNOPSIS

***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 );

DESCRIPTION

**This module is unmaintained**

Most functions output debugging information if the environment variable ITUNES_DEBUG is a true value.

Functions

NAME

Mac::iTunes::Library::Parse - parse the iTunes binary database file

SYNOPSIS

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 );

DESCRIPTION

Most functions output debugging information if the environment variable ITUNES_DEBUG is a true value.

Functions

NAME

Mac::iTunes::Library::Parse - parse the iTunes binary database file

SYNOPSIS

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 );

DESCRIPTION

Most functions output debugging information if the environment variable ITUNES_DEBUG is a true value.

Functions

parse( FILEHANDLE )

Turn the iTunes Music Library into the Mac::iTunes object. It takes a filehandle to the open-ed iTunes Music Library file.

hdfm( DATA )

The hdfm record is the master record for the library. It holds the iTunes aaplication version number.

htlm( DATA )

The htlm record holds the number of lists. When we run into this record, remember the right number of playlists.

htim

The htim record starts the Item object

hohm

The hohm record holds variable length data.

hplm

The hplm record starts a list of playlists.

hpim

The hpim record holds playlists

hptm

The hptm record holds a track identifier.

SOURCE AVAILABILITY

This source is in GitHub:

https://github.com/CPAN-Adopt-Me/MacOSX-iTunes.git

SEE ALSO

Mac::iTunes, Mac::iTunes::Item, Mac::iTunes::Playlist

TO DO

* everything - the list of things already done is much shorter.

AUTHOR

brian d foy, <bdfoy@cpan.org>

COPYRIGHT AND LICENSE

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.