fix quoting in AsyncWgetFileGetter again
[videosite.git] / videosite / SnotrGrabber.pm
index 5b6ccfb..87b7a10 100644 (file)
@@ -15,15 +15,15 @@ use strict;
 
 sub new {
     my $class = shift;
-    my $self = $class->SUPER::new();
-
-    $self->{'NAME'} = 'snotr';
-    $self->{'PATTERNS'} = ['(http://(?:[-a-zA-Z0-9_.]+\.)*snotr\.com/video/(\d+))'];
-
-    bless($self, $class);
-    $self->_prepare_parameters();
-
-    return $self;
+    my $self = $class->SUPER::new(
+        NAME => 'snotr',
+        _SELFTESTURL => 'http://www.snotr.com/video/1836',
+        _SELFTESTTITLE => 'Brilliant thief',
+        PATTERNS => ['(http://(?:[-a-zA-Z0-9_.]+\.)*snotr\.com/video/(\d+))'],
+        @_,
+    );
+
+    return bless($self, $class);
 }
 
 sub _parse {
@@ -51,7 +51,7 @@ sub _parse {
         return undef;
     }
 
-    $n = $p->findnodes('meta[@name="title"]');
+    $n = $p->findnodes('meta[@property="og:title"]');
     if (defined($n)) {
         $metadata->{'TITLE'} = $n->{'content'};
     }