X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite%2FHTTPJSONGetter.pm;h=4db0ed8b828fffe98652c4ec462598c6eedce075;hb=1bc44dd403d1b6430a94adf9c6050d396bd89463;hp=87a6d83e56150e8d4809825e93aa252aa9e4ff48;hpb=1ecf932c3bc66f79608bc057184af51fe323bcb7;p=videosite.git diff --git a/videosite/HTTPJSONGetter.pm b/videosite/HTTPJSONGetter.pm index 87a6d83..4db0ed8 100644 --- a/videosite/HTTPJSONGetter.pm +++ b/videosite/HTTPJSONGetter.pm @@ -14,15 +14,15 @@ use JSON -support_by_pp; sub new { my $class = shift; - my $self = $class->SUPER::new(); - - $self->{'NAME'} = 'HTTPJSONGetter'; - $self->{'_PARAMS'} = {'URL' => ['http://www.example.com/getjson.pl', "The URL to call in order to trigger a download. The JSON encoded information will be POSTed to this URL."]}; - - bless($self, $class); - $self->_prepare_parameters(); - - return $self; + my $self = $class->SUPER::new( + NAME => 'HTTPJSONGetter', + _PARAMS => { + URL => ['http://www.example.com/getjson.pl', "The URL to call in order to trigger a download. The JSON encoded information will be POSTed to this URL."] + }, + @_, + ); + + return bless($self, $class); } sub get {