- my $self = $class->SUPER::new();
-
- $self->{'NAME'} = 'redtube';
- $self->{'PATTERNS'} = ['(http://(?:[-a-zA-Z0-9_.]+\.)*redtube.com/(\d+))'];
-
- bless($self, $class);
- $self->_prepare_parameters();
-
- return $self;
-}
-
-sub check_cookie {
-
- my $jar = shift;
- my $key = shift;
- my $found = undef;
-
- $jar->scan(sub { $found = 1 if ( $key eq $_[1]) });
-
- return $found;
+ my $self = $class->SUPER::new(
+ NAME => 'redtube',
+ _SELFTESTURL => 'http://www.redtube.com/8269',
+ _SELFTESTTITLE => 'Porn bloopers with pretty girl',
+ PATTERNS => ['(http://(?:[-a-zA-Z0-9_.]+\.)*redtube.com/(\d+))'],
+ @_,
+ );
+
+ return bless($self, $class);