Change new() function in plugins to avoid having to call _prepare_parameters() in...
[videosite.git] / videosite / AsyncFileGetter.pm
index 984597d..4250bf4 100644 (file)
@@ -20,14 +20,11 @@ use MIME::Base64;
 
 sub new {
     my $class = shift;
-    my $self = $class->SUPER::new();
+    my $self = $class->SUPER::new(
+        NAME => 'asyncfilegetter',
+    );
 
-    $self->{'NAME'} = 'asyncfilegetter';
-
-    bless($self, $class);
-    $self->_prepare_parameters();
-
-    return $self;
+    return bless($self, $class);
 }
 
 sub get {