WWW::Search::Coveralia::Result::Album - an album found by WWW::Search::Coveralia::Albums
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
WWW::Search::Coveralia::Result::Album is the result of a WWW::Search::Coveralia::Albums search.
Useful methods:
Returns a link to the album page on coveralia.
Returns the name of the album.
Returns the name of the artist of this album.
Returns the year when this album was released, or undef if the year is not known.
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:
Front cover
Back cover
CD/DVD art
Interior frontal cover.
Interior back cover.
Convenience method. Returns a link to the cover art of a particular type. This will change for the first stable version.
Returns a list of songs in this album. Each song is a hashref with the following keys:
The track number of this song.
The name of this song.
Optional. A link to the lyrics of this song. Will likely change for the first stable version.
Optional. A link to the music video of this song. Will likely change for the first stable version.
Optional. A link to the tab of this song. Will likely change for the first stable version.
Downloads the covers page and extracts the albums. It is called automatically by other methods when necessary.
WWW::Search::Coveralia::Albums
Marius Gavrilescu, <marius@ieval.ro>
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.
To install WWW::Search::Coveralia, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Search::Coveralia
CPAN shell
perl -MCPAN -e shell install WWW::Search::Coveralia
For more information on module installation, please visit the detailed CPAN module installation guide.