From 134915427cbf80a82868b173766a9c0da84b0fba Mon Sep 17 00:00:00 2001 From: Ralf Ertzinger Date: Thu, 4 Jun 2009 16:12:44 +0200 Subject: [PATCH 1/1] Use the first occurance of
, the second one is used for ads --- quotesite/GermanBashGrabber.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/quotesite/GermanBashGrabber.pm b/quotesite/GermanBashGrabber.pm index 8b52db9..919f015 100644 --- a/quotesite/GermanBashGrabber.pm +++ b/quotesite/GermanBashGrabber.pm @@ -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; } } -- 1.8.3.1