Use the first occurance of <div class="qoute">, the second one is used for ads
[quotesite.git] / quotesite / GermanBashGrabber.pm
index 8b52db9..919f015 100644 (file)
@@ -58,6 +58,7 @@ sub _parse {
         if (exists($t->[1]->{'class'}) && ($t->[1]->{'class'} eq 'zitat')) {
             $metadata->{'CONTENT'} = $p->get_text('/div');
             $metadata->{'CONTENT'} =~ s/^\s*//mg;
+            last;
         }
     }