summaryrefslogtreecommitdiff
path: root/rhautoimport-tr
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-05-25 14:15:22 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-05-25 14:15:22 (GMT)
commit2fbd4bc628b28c88a45026a1ec4a324ca2bda417 (patch)
tree83e7097247d1b6eae1e0c401b1f91a7d1b2e0eec /rhautoimport-tr
parent25acf325139cc0f7ce59406bc083258aa1e8bfee (diff)
make interface of fetch_parse_rss the same as fetch_parse_json from rhrdlibs
Diffstat (limited to 'rhautoimport-tr')
-rwxr-xr-xrhautoimport-tr6
1 files changed, 3 insertions, 3 deletions
diff --git a/rhautoimport-tr b/rhautoimport-tr
index df848a5..7b88c6d 100755
--- a/rhautoimport-tr
+++ b/rhautoimport-tr
@@ -84,9 +84,9 @@ my $bdfile = sprintf("^%04d-?%02d-?%02d", @broadcast_day);
print "looking for files from $bd in RSS Feed\n";
print " -> $RSS_URL\n";
-my ($feed, $errstr) = rhautoimport::fetch_parse_rss($RSS_URL);
-unless (defined $feed) {
- print "Error fetching feed: $errstr\n";
+my ($result, $feed) = rhautoimport::fetch_parse_rss($RSS_URL);
+unless ($result) {
+ print "Error fetching feed: $feed\n";
exit 1;
}