NAME => 'motherless',
_SELFTESTURL => 'http://motherless.com/4976432',
_SELFTESTTITLE => 'Teen masturbation in shower',
- _PATTERNS => ['(http://(?:[-a-zA-Z0-9_.]+\.)*motherless.com/([a-zA-Z0-9]+))'],
+ PATTERNS => ['(http://(?:[-a-zA-Z0-9_.]+\.)*motherless.com/([a-zA-Z0-9]+))'],
@_,
);
$p = HTML::TokeParser->new(\$content);
# Look for the title
- while ($tag = $p->get_tag('title', 'script')) {
- if ('title' eq $tag->[0]) {
- my $t = $p->get_text();
- $metadata->{'TITLE'} = $t;
- $metadata->{'TITLE'} =~ s/.* : *//;
+ while ($tag = $p->get_tag('meta', 'script')) {
+ if (('meta' eq $tag->[0]) and ($tag->[1]->{'name'}) and ($tag->[1]->{'name'} eq 'description')) {
+ $metadata->{'TITLE'} = $tag->[1]->{'content'};
} elsif ('script' eq $tag->[0]) {
my $t = $p->get_text();