@ISA = qw(videosite::GrabberBase);
use videosite::HTMLHelper;
-use LWP::Simple qw(!get);
use XML::Simple;
use Data::Dumper;
my $self = $class->SUPER::new();
$self->{'NAME'} = 'collegehumor';
+ $self->{_SELFTESTURL} = 'http://www.collegehumor.com/video/5635400/pixar-intro-parody';
+ $self->{_SELFTESTTITLE} = 'Pixar Intro Parody';
$self->{'PATTERNS'} = ['(http://www.collegehumor.com/video:(\d+))',
'(http://www.collegehumor.com/video/(\d+))'];
$metadata->{'DLURL'} = undef;
# Get the XML file containing the video metadata
- unless(defined($content = LWP::Simple::get(sprintf('http://www.collegehumor.com/moogaloop/video/%s', $2)))) {
+ unless(defined($content = $self->simple_get(sprintf('http://www.collegehumor.com/moogaloop/video/%s', $2)))) {
$self->error('Could not download XML metadata');
return undef;
}