Mac::iPod::DB - OO extension for reading iPod database


Mac-iPod-DB documentation  | view source Contained in the Mac-iPod-DB distribution.

Index


NAME

Top

Mac::iPod::DB - OO extension for reading iPod database

SYNOPSIS

Top

 use Mac::iPod::DB;

 my $db = new Mac::iPod::DB('/Volumes/IPOD/iPod_Control/iTunes/iTunesDB');




 foreach my $pl ($db->playlists) {

    printf "playlist: %s\n", $pl->name;

    foreach my $sid ($pl->songs) {

	( my $path = $db->song($sid)->path() ) =~ s/\:/\//g;

	printf "Artist: %s title: %s path: %s\n", 
	$db->song($sid)->artist(), $db->song($sid)->title(), $path;

    }

 }




Mac::iPod::DB METHODS

Top

    	new(<PATH_TO_DB_FILE>)
		instantiate a new object passing the path location
		of the iPod DB file

	$obj->playlists()
		returns an array of playlist objects

	$obj->songIds()
		returns an array of song ids (integers)

	$obj->songs()
		returns an array of song objects

	$obj->song(<song id>)
		returns a song object




Mac::iPod::DB::Song METHODS

Top

       $obj->id
       $obj->title
       $obj->path
       $obj->album
       $obj->artist
       $obj->genre
       $obj->fdesc
       $obj->comment
       $obj->composer
       $obj->bitrate
       $obj->time
       $obj->filesize
       $obj->songnum
       $obj->songs
       $obj->cdnum
       $obj->cds
       $obj->year




Mac::iPod::DB::PlayList METHODS

Top

       $obj->songs
		returns an array of song ids (integers)
		that are associated with the playlist







EXPORT

None by default.

AUTHOR

Top

Sean Scanlon, <sps at bluedot.net>

COPYRIGHT AND LICENSE

Top


Mac-iPod-DB documentation  | view source Contained in the Mac-iPod-DB distribution.