Explorar el Código

Better ISO error handling

Zachary Kotlarek hace 10 años
padre
commit
37448c9be6
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      findTorrent.pl

+ 5 - 1
findTorrent.pl

@@ -976,9 +976,13 @@ foreach my $content (@html_content) {
 			push(@tors, \%tor);
 		}
 
+	} elsif ($content =~ /\<title\>Sorry/) {
+		if ($DEBUG) {
+			print STDERR "ISO offline\n";
+		}
 	} elsif ($content =~ /Database\s+maintenance/i) {
 		if ($DEBUG) {
-			print STDERR "Source down for maintenance\n";
+			print STDERR "TPB offline\n";
 		}
 	} elsif ($content =~ /^\s*$/) {
 		if ($DEBUG) {