소스 검색

Deal with Cloudflare failures

Zachary Kotlarek 9 년 전
부모
커밋
fac2492bef
1개의 변경된 파일과 4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      findTorrent.pl

+ 4 - 0
findTorrent.pl

@@ -1191,6 +1191,10 @@ sub parseHTML($) {
 		if ($DEBUG) {
 			print STDERR "No results\n";
 		}
+	} elsif ($content =~ /Error\s+404\<\/title\>/i) {
+		if ($DEBUG) {
+			print STDERR "Cloundflare offline\n";
+		}
 	} else {
 		warn("Unknown HTML content:\n" . $content . "\n\n");
 	}