Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't show torrents that aren't in the file and aren't seeded

  • Loading branch information...
commit 2ec11ea159a9a03c4e20d3342d8357b7110ae753 1 parent f7db97f
@afresh1 authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 OpenBSDtracker
View
4 OpenBSDtracker
@@ -42,7 +42,9 @@ helper torrents => sub {
my $files = eval { $ot_stats->stats('tpbs')->{tpbs}->{files} };
warn $@ if $@;
- $torrents->{ lc $_ }->{stats} = $files->{$_} for keys %{ $files || {} };
+ $torrents->{ lc $_ }->{stats} = $files->{$_}
+ for grep { $torrents->{ lc $_ } || $files->{$_}->{complete} }
+ keys %{ $files || {} };
return $torrents;
};
Please sign in to comment.
Something went wrong with that request. Please try again.