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
Change new() function in plugins to avoid having to call _prepare_parameters() in...
[videosite.git]
/
videosite
/
MetaCafeGrabber.pm
diff --git
a/videosite/MetaCafeGrabber.pm
b/videosite/MetaCafeGrabber.pm
index
e134bec
..
e7f51d5
100644
(file)
--- a/
videosite/MetaCafeGrabber.pm
+++ b/
videosite/MetaCafeGrabber.pm
@@
-15,16
+15,12
@@
use strict;
sub new {
my $class = shift;
sub new {
my $class = shift;
- my $self = $class->SUPER::new();
+ my $self = $class->SUPER::new(
+ NAME => 'metacafe',
+ PATTERNS => ['(http://(?:[-a-zA-Z0-9_.]+\.)*metacafe.com/watch/(\d+)(?:\S+)?)'],
+ );
- $self->{'NAME'} = 'metacafe';
- $self->{'PATTERNS'} = ['(http://(?:[-a-zA-Z0-9_.]+\.)*metacafe.com/watch/(\d+)(?:\S+)?)'];
-
- bless($self, $class);
-
- $self->_prepare_parameters();
-
- return $self;
+ return bless($self, $class);
}
sub _parse {
}
sub _parse {