summaryrefslogtreecommitdiff
path: root/rhimport-nw
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport-nw')
-rwxr-xr-xrhimport-nw5
1 files changed, 5 insertions, 0 deletions
diff --git a/rhimport-nw b/rhimport-nw
index 12dd2df..42f4aac 100755
--- a/rhimport-nw
+++ b/rhimport-nw
@@ -121,6 +121,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 " --> " . $bdfile . ": downloading " . $url . " (" . $enclosure->length . " Bytes) .. ";
$file = $ff->fetch( to => '/tmp' ) or die $ff->error;