Only count feed URLs.

This commit is contained in:
Bradley M. Kuhn 2014-12-31 13:31:13 -05:00
parent 3c7779dbf1
commit d94bd5176e

View file

@ -31,6 +31,8 @@ while (<>) {
$url =~ s/\s*\.(ogg|mp3)\s*$/.audio/i; # Treat ogg and mp3 downloads same.
$url =~ s/\s*\/$$//; # Always remove trailing slash
next unless $url =~ /feed/;
$data{$url}{__TOTAL__} = 0 unless defined $data{$url}{__TOTAL__};
$data{$url}{__TOTAL__}++;