From d94bd5176e1ffc68073f6aee5ff24660a6fe2cb5 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 31 Dec 2014 13:31:13 -0500 Subject: [PATCH] Only count feed URLs. --- feed-count.plx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/feed-count.plx b/feed-count.plx index 9107479..a2ca223 100755 --- a/feed-count.plx +++ b/feed-count.plx @@ -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__}++;