Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Net::iTMS::Album 0.15

    Download button

    No screenshots available
    Downloads: 386  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Thomas R. Sibley | More programs
    Perl Artistic License / FREE
    October 16th, 2007, 10:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::iTMS::Album description

    Net::iTMS::Album Perl module represents an album in the iTunes Music Store.

    Net::iTMS::Album Perl module represents an album in the iTunes Music Store.

    SYNOPSIS

    use Net::iTMS::Album;

    my $album = Net::iTMS::Album->new($iTMS, $id);

    print "Album: ", $album->title, "n";

    # $track will be a Net::iTMS::Song object
    for my $track ($album->tracks) { # also $album->songs
    print "t ", $track->number, ": ", $track->title, "n";
    }

    Net::iTMS::Album represents an album in the iTMS and encapsulates the associated data. If a piece of information hasn't been fetched from the iTMS, it will transparently fetch and store it for later use before returning.

    If any method, excepting id, record_label, and thumb, is called, the information for the others will be fetched in the same request. This means, for these methods, the first call to one will have a time hit for the HTTP request, but subsequent calls won't.

    Methods

    new($itms, $albumId)

    The first argument must be an instance of Net::iTMS, the second an iTMS album ID.

    Returns a blessed hashref (object) for Net::iTMS::Album.

    id

    Returns the ID of the album (albumId).

    title

    name

    Returns the title of the album.

    artist

    Returns a Net::iTMS::Artist object for the album's artist.

    genre

    Returns a Net::iTMS::Genre object for the album's genre.

    cover

    Returns a hashref with the keys url, width, and height which are for the album's cover.

    thumb

    Returns a hashref with the keys url, width, and height which are for the thumbnail of the album's cover (if available).

    tracks

    songs

    Returns an array or arrayref (depending on context) of Net::iTMS::Song objects representing the tracklist of the album (in order of track number).

    total_songs

    Returns the total number of songs on the album available from the iTMS.

    released

    Returns the release date of the album (if available).

    copyright

    Returns the copyright information for the album (if available).

    path

    Returns an arrayref of hashrefs representing the album's "path" in the iTMS. The hashrefs contain the name of the node in the path and the iTMS URL of that node.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    iTunes music store | music album | Perl module | iTunes | iTMS | album

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM