Explorar el Código

It is a whole string

Zachary Kotlarek hace 10 años
padre
commit
d10e1feec7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      rss.pl

+ 1 - 1
rss.pl

@@ -348,7 +348,7 @@ foreach my $time (sort(@need)) {
 
 	# Cleanup
 	if (defined($err)) {
-		if ($DEBUG || ($err ne '403' && $err ne '404')) {
+		if ($DEBUG || ! ($err =~ /\b40[34]$/)) {
 			print STDERR 'Unable to download ' . $ep->{'url'} . ': ' . $err . "\n";
 		}
 		if (-e $file) {