summaryrefslogtreecommitdiff
path: root/rhautoimport-nw
diff options
context:
space:
mode:
Diffstat (limited to 'rhautoimport-nw')
-rwxr-xr-xrhautoimport-nw7
1 files changed, 5 insertions, 2 deletions
diff --git a/rhautoimport-nw b/rhautoimport-nw
index 385a519..24350a9 100755
--- a/rhautoimport-nw
+++ b/rhautoimport-nw
@@ -84,8 +84,11 @@ my $bdfile = sprintf("NETWATCHER[-_]?%04d%02d%02d(.*)\.MP3", @broadcast_day);
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 = "";