WWW-Moviepilot

 view release on metacpan or  search on metacpan

lib/WWW/Moviepilot.pm  view on Meta::CPAN

=item * C<ua> (default: C<< LWP::UserAgent->new >>)

A L<LWP::UserAgent> compatible user agent.

=back

=cut

sub new {
    my ($class, $args) = @_;
    my $self = bless {} => $class;
    $self->{api_key} = $args->{api_key} || croak "api_key is missing at " . __PACKAGE__ . "->new()";
    $self->{host}    = $args->{host}    || 'www.moviepilot.de';
    $self->{ua}      = $args->{ua}      || LWP::UserAgent->new;

    $self->{host} = 'http://' . $self->{host} unless $self->{host} =~ m{^http://};

    return $self;
}

=head2 movie( $name ) | movie( $source => $id )

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.294 second using v1.00-cache-2.02-grep-82fe00e-cpan-48ebf85a1963 )