The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Search::Coveralia::Result::Album - an album found by WWW::Search::Coveralia::Albums

SYNOPSIS

  my $result = $search->next_result;
  say 'URL: ', $result->url;
  say 'Name: ', $result->name;
  my @albums = $result->albums;
  # @albums is an array of WWW::Search::Coveralia::Result::Album objects

DESCRIPTION

WWW::Search::Coveralia::Result::Album is the result of a WWW::Search::Coveralia::Albums search.

Useful methods:

url

Returns a link to the album page on coveralia.

title

Returns the name of the album.

artist

Returns the name of the artist of this album.

year

Returns the year when this album was released, or undef if the year is not known.

covers

Returns a hash of cover art, with the kind of cover art as key and the link to the cover art page as value. This will change for the first stable version.

Typical keys:

frontal

Front cover

trasera

Back cover

cd/cd1/cd2/dvd/dvd1/dvd2/...

CD/DVD art

interior1 / interior frontal

Interior frontal cover.

interior2 / interior trasera

Interior back cover.

cover($type)

Convenience method. Returns a link to the cover art of a particular type. This will change for the first stable version.

songs

Returns a list of songs in this album. Each song is a hashref with the following keys:

id

The track number of this song.

name

The name of this song.

lyrics

Optional. A link to the lyrics of this song. Will likely change for the first stable version.

video

Optional. A link to the music video of this song. Will likely change for the first stable version.

tab

Optional. A link to the tab of this song. Will likely change for the first stable version.

parse_page

Downloads the covers page and extracts the albums. It is called automatically by other methods when necessary.

SEE ALSO

WWW::Search::Coveralia::Albums

AUTHOR

Marius Gavrilescu, <marius@ieval.ro>

COPYRIGHT AND LICENSE

Copyright (C) 2014 by Marius Gavrilescu

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.1 or, at your option, any later version of Perl 5 you may have available.