From: Ralf Ertzinger Date: Tue, 15 Apr 2008 19:18:04 +0000 (+0200) Subject: - Fix properties interitance for GrabberBase and GetterBase X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=commitdiff_plain;h=56322f8fce4f7ceadbd24a4e91e0eebd0fd249d5 - Fix properties interitance for GrabberBase and GetterBase --- diff --git a/videosite/Base.pm b/videosite/Base.pm index cad4374..d8a4e98 100644 --- a/videosite/Base.pm +++ b/videosite/Base.pm @@ -8,7 +8,7 @@ use Data::Dumper; sub new { my $class = shift; - my $self = {'_DEBUG' => 0, '_OUT' => sub {}}; + my $self = {'_DEBUG' => 0, '_OUT' => sub {print shift}}; bless($self, $class); diff --git a/videosite/GetterBase.pm b/videosite/GetterBase.pm index c391ed8..a8130db 100644 --- a/videosite/GetterBase.pm +++ b/videosite/GetterBase.pm @@ -10,7 +10,9 @@ use strict; sub new { my $class = shift; - my $self = { + my $self = $class->SUPER::new(); + + $self = {%{$self}, NAME => 'FlashGetter', TYPE => 'getter' }; diff --git a/videosite/GrabberBase.pm b/videosite/GrabberBase.pm index eec5a33..ad0b1e7 100644 --- a/videosite/GrabberBase.pm +++ b/videosite/GrabberBase.pm @@ -9,7 +9,9 @@ use strict; sub new { my $class = shift; - my $self = { + my $self = $class->SUPER::new(); + + $self = {%{$self}, NAME => 'FlashGrab', TYPE => 'grabber', PATTERNS => [],