Bump version and update Changes
[www-search-coveralia.git] / lib / WWW / Search / Coveralia / Albums.pm
CommitLineData
a97b490d
MG
1package WWW::Search::Coveralia::Albums;
2
3use 5.014000;
4use strict;
5use warnings;
6use parent qw/WWW::Search::Coveralia/;
7
e8e50668 8our $VERSION = '0.001';
a97b490d
MG
9
10use WWW::Search::Coveralia::Result::Album;
11use constant DEFAULT_URL => 'http://www.coveralia.com/mostrar_discos.php';
12
13sub process_result{
14 my ($self, $row) = @_;
15 my $a = $row->find('a');
16 my ($title, $artist, $year) = map { $_->as_text } $row->find('td');
17 my $url = $self->absurl('', $a->attr('href'));
18 WWW::Search::Coveralia::Result::Album->new($self, $url, $title, $artist, $year);
19}
20
211;
22__END__
23
24=head1 NAME
25
26WWW::Search::Coveralia::Albums - search for albums on coveralia.com with WWW::Search
27
28=head1 SYNOPSIS
29
30 use WWW::Search;
31 my $search = WWW::Search->new('Coveralia::Albums');
32 $search->native_query('query');
33 # see WWW::Search documentation for details
34
35=head1 DESCRIPTION
36
37WWW::Search::Coveralia::Albums is a subclass of WWW::Search that searches for albums using the L<http://coveralia.com> cover art website.
38
39To use this module, read the L<WWW::Search> documentation.
40
41Search results are instances of the L<WWW::Search::Coveralia::Result::Album> Class.
42
43=head1 SEE ALSO
44
45L<http://coveralia.com>, L<WWW::Search>, L<WWW::Search::Coveralia::Artists>
46
47=head1 AUTHOR
48
49Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
50
51=head1 COPYRIGHT AND LICENSE
52
53Copyright (C) 2014 by Marius Gavrilescu
54
55This library is free software; you can redistribute it and/or modify
56it under the same terms as Perl itself, either Perl version 5.18.2 or,
57at your option, any later version of Perl 5 you may have available.
58
59
60=cut
This page took 0.011841 seconds and 4 git commands to generate.