X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=quotesite.git;a=blobdiff_plain;f=quotesite%2FQdbGrabber.pm;fp=quotesite%2FQdbGrabber.pm;h=1c56ee7687ba915231767481897cb99bb9ac0104;hp=0a652556ff38a71b7b00e17825d4cdad363b5560;hb=0bbb1b5ad38dfbc63f25220d6661ac9d46d86bba;hpb=6cd503fd48f962d4bb2f149aebbcfe25dd7cf6bf diff --git a/quotesite/QdbGrabber.pm b/quotesite/QdbGrabber.pm index 0a65255..1c56ee7 100644 --- a/quotesite/QdbGrabber.pm +++ b/quotesite/QdbGrabber.pm @@ -54,12 +54,10 @@ sub _parse { $p = HTML::TokeParser->new(\$content); - OUTER: while ($t = $p->get_tag('table')) { - if (exists($t->[1]->{'class'}) && ($t->[1]->{'class'} eq 'quote')) { - while ($t2 = $p->get_tag('p')) { - $metadata->{'CONTENT'} = $p->get_text('/p'); - last OUTER; - } + OUTER: while ($t = $p->get_tag('span')) { + if (exists($t->[1]->{'class'}) && ($t->[1]->{'class'} eq 'qt')) { + $metadata->{'CONTENT'} = $p->get_text('/span'); + last OUTER; } }