Przeglądaj źródła

Better ISO error handling

Zachary Kotlarek 10 lat temu
rodzic
commit
37448c9be6
1 zmienionych plików z 5 dodań i 1 usunięć
  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) {