Przeglądaj źródła

Fewer complaints

Zachary Kotlarek 11 lat temu
rodzic
commit
c2c472d9b9
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      findTorrent.pl

+ 3 - 1
findTorrent.pl

@@ -688,7 +688,9 @@ foreach my $content (@html_content) {
 			}
 
 			# Skip empty results
-			if ($tds[1] =~ /\<h2\>Nothing found\!\<\/h2\>/i) {
+			if (   $tds[1] =~ /\<h2\>Nothing found\!\<\/h2\>/i
+				|| $tds[1] =~ /\<p\>\<strong\>Page not found\<\/strong\>\<\/p\>/i)
+			{
 				if ($DEBUG) {
 					print STDERR "Skipping empty TD\n";
 				}