fix quoting in AsyncWgetFileGetter again
[videosite.git] / videosite / GrabberBase.pm
index b31d934..576d7e4 100644 (file)
@@ -11,13 +11,12 @@ use strict;
 
 sub new {
     my $class = shift;
-    my $self = $class->SUPER::new();
-
-    $self = {%{$self},
+    my $self = $class->SUPER::new(
         NAME => 'FlashGrab',
         TYPE => 'grabber',
         PATTERNS => [],
-    };
+        @_,
+    );
     return bless($self, $class);
 }
 
@@ -43,8 +42,6 @@ sub get($$) {
                 }
             }
             if (defined($res)) {
-                print Dumper($res);
-                print Dumper($self->_cached_ua());
                 if (defined($self->_cached_ua())) {
                     $res->{COOKIES} = encode_base64("#LWP-Cookies-1.0\n" . $self->_cached_ua()->cookie_jar->as_string(), "");
                 }