X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=blobdiff_plain;f=videosite%2FGoogleGrabber.pm;fp=videosite%2FGoogleGrabber.pm;h=51d0e2e1f9180705b2d679eee69aa8a5129849bd;hp=49156035ed46ce0dbd80e754a942e55c94ed4338;hb=debab097d66f3bd735e837a146bc81d09e420961;hpb=9bb78db68a79470e45dd6400321e3dd96ffcb20b diff --git a/videosite/GoogleGrabber.pm b/videosite/GoogleGrabber.pm index 4915603..51d0e2e 100644 --- a/videosite/GoogleGrabber.pm +++ b/videosite/GoogleGrabber.pm @@ -15,16 +15,16 @@ use strict; sub new { my $class = shift; - my $self = $class->SUPER::new(); - - $self->{'NAME'} = 'google'; - $self->{'PATTERNS'} = ['(http://video\.google\.com/videoplay\?docid=([-\d]+))']; - $self->{'_PARAMS'} = {'QUALITY' => ['normal', 'Quality of the video to download. normal = standard resolution flash video, h264 = high resolution MPEG4 video']}; - - bless($self, $class); - $self->_prepare_parameters(); - - return $self; + my $self = $class->SUPER::new( + NAME => 'google', + PATTERNS => ['(http://video\.google\.com/videoplay\?docid=([-\d]+))'], + _PARAMS => { + QUALITY => ['normal', 'Quality of the video to download. normal = standard resolution flash video, h264 = high resolution MPEG4 video'] + }, + @_, + ); + + return bless($self, $class); } sub _parse {