Explorar el Código

Handle IS API failures (which return XML for some reason)

Zachary Kotlarek hace 9 años
padre
commit
a16bf17c3a
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      findTorrent.pl

+ 4 - 0
findTorrent.pl

@@ -1178,6 +1178,10 @@ sub parseHTML($) {
 		if ($DEBUG) {
 			print STDERR "Source request limit reached\n";
 		}
+	} elsif ($content =~ /\(wrong\s+API\s+key\)/i) {
+		if ($DEBUG) {
+			print STDERR "IS API failure\n";
+		}
 	} elsif ($content =~ /Not\s+Found\<\/title\>/i) {
 		if ($DEBUG) {
 			print STDERR "No results\n";