summaryrefslogtreecommitdiff
path: root/rhimport-fe
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport-fe')
-rwxr-xr-xrhimport-fe5
1 files changed, 5 insertions, 0 deletions
diff --git a/rhimport-fe b/rhimport-fe
index c6fba81..fbcaca1 100755
--- a/rhimport-fe
+++ b/rhimport-fe
@@ -127,6 +127,11 @@ for my $entry ($feed->entries) {
exit 0;
}
$out_file = $ff->output_file;
+ if(!rhimport::check_file_extension($out_file)) {
+ print "\n\nThe extension of the matching file '". $out_file . "' seems to be wrong - manual import necessary!!!\n";
+ $dbh->disconnect();
+ exit 1;
+ }
print $regexp . ": downloading " . $entry->enclosure->url . " (" . $entry->enclosure->length . " Bytes) .. ";
$file = $ff->fetch( to => '/tmp' ) or die $ff->error;