소스 검색

Only check NO_QUALITY_CHECKS if there is no episode number parsed

Zachary Kotlarek 11 년 전
부모
커밋
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";
 			}