X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite%2FYahooGrabber.pm;h=44715f980e7b2821a2be5688d9f84ea6645836f7;hb=17bca93d2b471f5f099a4046297159a029989430;hp=fc880438ffaf0253ad564f88cd68b0e61267adc5;hpb=0f5d73c2da91398add811e640014edfb46e889c1;p=videosite.git diff --git a/videosite/YahooGrabber.pm b/videosite/YahooGrabber.pm index fc88043..44715f9 100644 --- a/videosite/YahooGrabber.pm +++ b/videosite/YahooGrabber.pm @@ -16,15 +16,12 @@ use strict; sub new { my $class = shift; - my $self = $class->SUPER::new(); + my $self = $class->SUPER::new( + NAME => 'yahoo', + PATTERNS => ['(http://video\.yahoo\.com/watch/\d+/(\d+))'], + ); - $self->{'NAME'} = 'yahoo'; - $self->{'PATTERNS'} = ['(http://video\.yahoo\.com/watch/\d+/(\d+))']; - - bless($self, $class); - $self->_prepare_parameters(); - - return $self; + return bless($self, $class); } sub _parse {