X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=blobdiff_plain;f=videosite%2FMNCastGrabber.pm;fp=videosite%2FMNCastGrabber.pm;h=45954f980b1cf69e095ad9af854216fa68efda89;hp=19c196949ede387ac98ea38bc67b6f568055fab1;hb=debab097d66f3bd735e837a146bc81d09e420961;hpb=9bb78db68a79470e45dd6400321e3dd96ffcb20b diff --git a/videosite/MNCastGrabber.pm b/videosite/MNCastGrabber.pm index 19c1969..45954f9 100644 --- a/videosite/MNCastGrabber.pm +++ b/videosite/MNCastGrabber.pm @@ -16,15 +16,13 @@ use strict; sub new { my $class = shift; - my $self = $class->SUPER::new(); + my $self = $class->SUPER::new( + NAME => 'mncast', + PATTERNS => ['(http://www\.mncast\.com/\?(\d+))'], + @_, + ); - $self->{'NAME'} = 'mncast'; - $self->{'PATTERNS'} = ['(http://www\.mncast\.com/\?(\d+))']; - - bless($self, $class); - $self->_prepare_parameters(); - - return $self; + return bless($self, $class); } sub _parse {