git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit a26f9fbc authored by tobyink's avatar tobyink

Use big list of songs instead of small list of songs.

parent 5efd5a21
......@@ -12,6 +12,16 @@ use RDF::RDFa::Parser::Redland '0.02';
my $uri = shift @ARGV
or die "Usage: librescrape.pl 'http://alpha.libre.fm/user/somebody'\n";
if ($uri =~ /user-profile\.php/)
{
$uri =~ s/user-profile.php/user-recent-tracks.php/;
$uri .= '&count=1000';
}
else
{
$uri .= '/recent-tracks?count=1000';
}
my $parser = RDF::RDFa::Parser::Redland->new(get($uri), $uri);
$parser->consume;
my $model = $parser->redland;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment