Procházet zdrojové kódy

Allow 9 and 8 column rows on ISO

Zachary Kotlarek před 12 roky
rodič
revize
5a85bd6c74
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      findTorrent.pl

+ 2 - 1
findTorrent.pl

@@ -628,7 +628,8 @@ foreach my $content (@html_content) {
 
 			# Split each TD element from the row
 			my @tds = split(/\<td(?:\s+[^\>]*)?\>/i, $tr);
-			if (scalar(@tds) != 10) {
+			my $numCols = scalar(@tds) - 1;
+			if ($numCols > 9 && $numCols < 8) {
 				print STDERR 'Invalid ISO TR: ' . $tr . "\n";
 				next;
 			}