diff options
Diffstat (limited to 'rhimport-oi')
-rwxr-xr-x | rhimport-oi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rhimport-oi b/rhimport-oi index d596c0b..a08490d 100755 --- a/rhimport-oi +++ b/rhimport-oi @@ -113,6 +113,12 @@ for my $entry ($feed->entries) { my $ff = File::Fetch->new(uri => $entry->enclosure->url); $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 $broadcast_num . ": downloading " . $entry->enclosure->url . " (" . $entry->enclosure->length . " Bytes) .. "; $file = $ff->fetch( to => '/tmp' ) or die $ff->error; print "ok\n"; |