Просмотр исходного кода

Debug code, but keeping anyway

Zachary Kotlarek 10 лет назад
Родитель
Сommit
276567247d
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      findTorrent.pl

+ 4 - 0
findTorrent.pl

@@ -1102,6 +1102,10 @@ foreach my $episode (keys(%tors)) {
 	my @sorted = sort { $b->{'adj_count'} <=> $a->{'adj_count'} } @{ $tors{$episode} };
 	my $max = undef();
 	foreach my $tor (@sorted) {
+		if (!$tor->{'hash'} || $EXCLUDES{ $tor->{'hash'} }) {
+			print STDERR 'Double-skipping file: Excluded hash (' . $tor->{'hash'} . '): ' . $tor->{'title'} . "\n";
+			next;
+		}
 		if (!defined($max) || $tor->{'adj_count'} > $max) {
 			if ($urls{$episode} = resolveSecondary($tor)) {
 				$max = $tor->{'adj_count'};