X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite%2FGrabberBase.pm;h=576d7e487e4c44671c919bd03706a2d2396f6150;hb=09d45a4c4460dce9322f4528dad5123322ab6b38;hp=b31d93430d6c5d5de1005dd06d404d70c48a5b41;hpb=a0c66a780bc2f652f32672303f336faafb23b911;p=videosite.git diff --git a/videosite/GrabberBase.pm b/videosite/GrabberBase.pm index b31d934..576d7e4 100644 --- a/videosite/GrabberBase.pm +++ b/videosite/GrabberBase.pm @@ -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(), ""); }