X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite%2FGoogleGrabber.pm;h=51d0e2e1f9180705b2d679eee69aa8a5129849bd;hb=09d45a4c4460dce9322f4528dad5123322ab6b38;hp=49156035ed46ce0dbd80e754a942e55c94ed4338;hpb=771fcc7e7309dcb054d652812cead6b6bf47be5f;p=videosite.git 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 {