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

Only check NO_QUALITY_CHECKS if there is no episode number parsed

Zachary Kotlarek 11 лет назад
Родитель
Сommit
5b2bfa5544
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      findTorrent.pl

+ 2 - 2
findTorrent.pl

@@ -979,8 +979,8 @@ foreach my $tor (@tors) {
 			}
 			next;
 
-			# Skip files that don't contain the episode number, unless NO_QUALITY_CHECKS is set
-		} elsif ((!defined($tor->{'episode'}) || (!$need{ $tor->{'episode'} } && !$NO_QUALITY_CHECKS))) {
+			# Skip files that don't contain a needed episode number, unless there is no episode number and NO_QUALITY_CHECKS is set
+		} elsif ((defined($tor->{'episode'}) && !$need{ $tor->{'episode'} }) || (!defined($tor->{'episode'}) && !$NO_QUALITY_CHECKS)) {
 			if ($DEBUG) {
 				print STDERR 'Skipping file: No match for episode number (' . $tor->{'episode'} . '): ' . $tor->{'title'} . "\n";
 			}