i dont have a clue yet how to do this, but knowing that my entries are all gzipped, I was looking at missmarple’s post, and then comparing to the downloaded code, and I am guessing that the script has changed a bit because it doesn’t look right to add the line at 624. Instead look in that section, and add it after the import_dir line (?):
-d "$dir/$_" && $self->import_dir ("$dir/$_");
/^(entry[\d-]+)\.txt.gz$/ && system("gunzip -fv $dir/$_");
/^(entry[\d-]+)\.txt$/ && $self->add_post("$dir/$1");