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 {