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-dl: Convert to built in config functions
[videosite.git]
/
videosite
/
LiveLeakGrabber.pm
diff --git
a/videosite/LiveLeakGrabber.pm
b/videosite/LiveLeakGrabber.pm
index
27f4c7f
..
4521f37
100644
(file)
--- a/
videosite/LiveLeakGrabber.pm
+++ b/
videosite/LiveLeakGrabber.pm
@@
-15,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 => 'liveleak',
+ PATTERNS => ['(http://(?:[-a-zA-Z0-9_.]+\.)*liveleak.com/view\?i=([^\&]+))'],
+ @_,
+ );
- $self->{'NAME'} = 'liveleak';
- $self->{'PATTERNS'} = ['(http://(?:[-a-zA-Z0-9_.]+\.)*liveleak.com/view\?i=([^\&]+))'];
-
- bless($self, $class);
- $self->_prepare_parameters();
-
- return $self;
+ return bless($self, $class);
}
sub _parse {
}
sub _parse {