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
videosite-irssi: fix typo
[videosite.git]
/
videosite
/
DoubleVikingGrabber.pm
diff --git
a/videosite/DoubleVikingGrabber.pm
b/videosite/DoubleVikingGrabber.pm
index
322e75e
..
027395e
100644
(file)
--- a/
videosite/DoubleVikingGrabber.pm
+++ b/
videosite/DoubleVikingGrabber.pm
@@
-8,7
+8,6
@@
package videosite::DoubleVikingGrabber;
use videosite::GrabberBase;
@ISA = qw(videosite::GrabberBase);
use videosite::GrabberBase;
@ISA = qw(videosite::GrabberBase);
-use LWP::Simple qw(!get);
use HTML::TokeParser;
use Data::Dumper;
use HTML::TokeParser;
use Data::Dumper;
@@
-16,15
+15,13
@@
use strict;
sub new {
my $class = shift;
sub new {
my $class = shift;
- my $self = $class->SUPER::new();
+ my $self = $class->SUPER::new(
+ NAME => 'doubleviking',
+ PATTERNS => ['(http://(?:[-a-zA-Z0-9_.]+\.)*doubleviking.com/videos/(?:[-a-zA-Z0-9_ %]+/)*page0\.html/(\d+)\.html$)'],
+ @_,
+ );
- $self->{'NAME'} = 'doubleviking';
- $self->{'PATTERNS'} = ['(http://(?:[-a-zA-Z0-9_.]+\.)*doubleviking.com/videos/(?:[-a-zA-Z0-9_ %]+/)*page0\.html/(\d+)\.html$)'];
-
- bless($self, $class);
- $self->_prepare_parameters();
-
- return $self;
+ return bless($self, $class);
}
sub _parse {
}
sub _parse {
@@
-48,7
+45,7
@@
sub _parse {
$metadata->{'TITLE'} = undef;
$metadata->{'DLURL'} = undef;
$metadata->{'TITLE'} = undef;
$metadata->{'DLURL'} = undef;
- unless(defined($content =
LWP::Simple::
get(sprintf('http://www.doubleviking.com/videos/page0.html/%s.html', $2)))) {
+ unless(defined($content =
$self->simple_
get(sprintf('http://www.doubleviking.com/videos/page0.html/%s.html', $2)))) {
$self->error('Could not download %s', $url);
return undef;
}
$self->error('Could not download %s', $url);
return undef;
}