--- WWW-SourceForge-0.09-patched/lib/WWW/SourceForge/Project.pm 2005-11-16 11:44:52.000000000 -0800 +++ WWW-SourceForge-0.09/lib/WWW/SourceForge/Project.pm 2005-10-06 20:07:01.000000000 -0700 @@ -47,34 +47,18 @@ my $proj; my $wa = WWW::Mechanize->new( autocheck => 1); $wa->get($url); - my $content = $wa->content or die "Could not retrieve content from '$url'\n"; + my $content = $wa->content; # Wrong project unixname ? if($content =~ m{
- (.+?) - -
}is; - - # TODO - # my ($meta) = $content =~ m{}s; - - if (! $desc) { warn $content; } + my ($desc,$meta) = $content =~ m{
+[\s\n]* (.+?)
}; + @$proj{'oPatches','nPatches'} = $content =~ m{Patches\s+\( (\d+?) open / (\d+?) total \) }; + @$proj{'oFeatures','nFeatures'} = $content =~ m{Feature Requests\s+\( (\d+) open / (\d+) total \)}; # Parse Admin my @admin; |