brian d foy > Mac-iTunes > Mac::iTunes::Item

Download:
Mac-iTunes-1.22.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.22   Source  

NAME ^

Mac::iTunes::Item

SYNOPSIS ^

        use Mac::iTunes::Item;

        my $item = Mac::iTunes::Item->new(
                {
                title    => $title,
                genre    => $genre,
                seconds  => $seconds,
                file     => $path,
                artist   => $artist,
                url      => $url,
                }
                );

DESCRIPTION ^

Create an iTunes item (aka track).

METHODS ^

new
new_from_mp3( FILE )

Creates a new item from the given file name.

copy

Return a deep copy of the item. The returned object will not refer (as in, point to the same data) as the original object.

title

Return the title of the item

seconds

Return the length, in seconds, of the item

genre

Return the genre of the song

file

Return the filename of the item

artist

Return the artist of the item

as_string

Return a string representation of the item

SOURCE AVAILABILITY ^

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 ^

Mac::iTunes, Mac::iTunes::Playlist, MP3::Info

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.

syntax highlighting: