Replace use of LWP::Simple in all grabbers by $self->simple_get()
[videosite.git] / videosite / CollegeHumorGrabber.pm
index fb03286..48ccc7b 100644 (file)
@@ -9,7 +9,6 @@ use videosite::GrabberBase;
 @ISA = qw(videosite::GrabberBase);
 
 use videosite::HTMLHelper;
-use LWP::Simple qw(!get);
 use XML::Simple;
 use Data::Dumper;
 
@@ -50,7 +49,7 @@ sub _parse {
     $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;
     }