diff options
Diffstat (limited to 'rhautoimport-rs')
-rwxr-xr-x | rhautoimport-rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rhautoimport-rs b/rhautoimport-rs index 843d339..e33a955 100755 --- a/rhautoimport-rs +++ b/rhautoimport-rs @@ -129,8 +129,11 @@ my $bdfile = sprintf("RAST%04d%02d%02d(CBA)?(.*)\.MP3", @broadcast_date); print "looking for files from $bd in RSS Feed\n"; print " -> $RSS_URL\n"; -my $feed = rhautoimport::fetch_parse_rss($RSS_URL) - or die "Error fetching feed: " . XML::Feed->errstr; +my ($feed, $errstr) = rhautoimport::fetch_parse_rss($RSS_URL); +unless (defined $feed) { + print "Error fetching feed: $errstr\n"; + exit 1; +} my $uri = ""; my $file = ""; |