- Study message before throwing it to the grabbers
[videosite.git] / videosite / GoogleGrabber.pm
index ad4ace3..5bfc61f 100644 (file)
@@ -56,7 +56,7 @@ sub _parse {
     # Look for the title
     if ($p->get_tag('title')) {
         $metadata->{'TITLE'} = $p->get_text();
-        $metadata->{'TITLE'} =~ s/ - Google Video$//;
+        $metadata->{'TITLE'} =~ s/\s?- Google Video$//s;
     }
 
     while ($e = $p->get_tag('a')) {