Explorar el Código

Do not consider "no results" an error

Zachary Kotlarek hace 10 años
padre
commit
3ed1a4023f
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      findTorrent.pl

+ 3 - 0
findTorrent.pl

@@ -670,6 +670,9 @@ foreach my $content (@html_content) {
 			# Split each TD element from the row
 			my @tds = split(/\<td(?:\s+[^\>]*)?\>/i, $tr);
 			if (scalar(@tds) > 10 || scalar(@tds) < 9) {
+				if ($tds[1] =~ /No results found/) {
+					next;
+				}
 				print STDERR 'Skipping invalid ISO TR: ' . $tr . "\n";
 				for (my $i = 0 ; $i < scalar(@tds) ; $i++) {
 					print STDERR 'TD' . $i . ': ' . $tds[$i] . "\n";