X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=blobdiff_plain;f=videosite%2FHTTPJSONGetter.pm;fp=videosite%2FHTTPJSONGetter.pm;h=4db0ed8b828fffe98652c4ec462598c6eedce075;hp=87a6d83e56150e8d4809825e93aa252aa9e4ff48;hb=debab097d66f3bd735e837a146bc81d09e420961;hpb=9bb78db68a79470e45dd6400321e3dd96ffcb20b 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 {