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


Mac-iTunes documentation  | view source Contained in the Mac-iTunes distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

Top

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

Functions

NAME

Top

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

SYNOPSIS

Top

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

Top

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

Functions

NAME

Top

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

SYNOPSIS

Top

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

Top

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

Top

This source is part of a SourceForge project which always has the latest sources in CVS, as well as all of the previous releases.

	http://sourceforge.net/projects/brian-d-foy/

If, for some reason, I disappear from the world, one of the other members of the project can shepherd this module appropriately.

SEE ALSO

Top

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

TO DO

Top

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

AUTHOR

Top

brian d foy, <bdfoy@cpan.org>

COPYRIGHT AND LICENSE

Top


Mac-iTunes documentation  | view source Contained in the Mac-iTunes distribution.