git://git.camperquake.de
/
videosite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace use of LWP::Simple in all grabbers by $self->simple_get()
[videosite.git]
/
videosite
/
DailyMotionGrabber.pm
diff --git
a/videosite/DailyMotionGrabber.pm
b/videosite/DailyMotionGrabber.pm
index
a98fae6
..
6544882
100644
(file)
--- a/
videosite/DailyMotionGrabber.pm
+++ b/
videosite/DailyMotionGrabber.pm
@@
-8,7
+8,6
@@
package videosite::DailyMotionGrabber;
use videosite::GrabberBase;
@ISA = qw(videosite::GrabberBase);
use videosite::GrabberBase;
@ISA = qw(videosite::GrabberBase);
-use LWP::Simple qw(!get);
use HTML::Parser;
use videosite::JSArrayParser;
use Data::Dumper;
use HTML::Parser;
use videosite::JSArrayParser;
use Data::Dumper;
@@
-50,7
+49,7
@@
sub _parse {
$metadata->{'TITLE'} = undef;
$metadata->{'DLURL'} = undef;
$metadata->{'TITLE'} = undef;
$metadata->{'DLURL'} = undef;
- unless(defined($content =
LWP::Simple::
get(sprintf('http://www.dailymotion.com/video/%s', $2)))) {
+ unless(defined($content =
$self->simple_
get(sprintf('http://www.dailymotion.com/video/%s', $2)))) {
$self->error('Could not download %s', $url);
return undef;
}
$self->error('Could not download %s', $url);
return undef;
}