--- trunk/scripts/est-spider 2006/11/14 16:39:08 195 +++ trunk/scripts/est-spider 2006/11/26 12:06:08 196 @@ -20,6 +20,7 @@ my $debug = 0; my $force = 0; my $all = 0; +my $skip_images = 0; my $result = GetOptions( "collection=s" => \$collection, @@ -29,6 +30,7 @@ "exclude=s" => \$exclude, "force!" => \$force, "all!" => \$all, + "skip-images!" => \$skip_images, ); my ($node_url,$dir) = @ARGV; @@ -40,6 +42,7 @@ --collection="name of collection" --path=/path/to/add/at/end --exclude=regex_to_exclude + --skip-images --verbose --force --debug @@ -346,6 +349,9 @@ warn "skipping '$path', no pstotext filter\n" if ($verbose); return; } + } elsif ($type =~ m!^image/! && $skip_images) { + warn "skipping image '$path'\n" if ($verbose); + return; # don't index images } else { # return if (! -f $path || ! m/\.(html*|php|pl|txt|info|log|text)$/i);