summaryrefslogtreecommitdiff
path: root/rhautoimport-dn
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-20 15:56:50 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-20 15:56:50 (GMT)
commit270058507061600c4451eab173ab485644430166 (patch)
treea5ff58a55cf69057d143f193c9a203ea3abbae59 /rhautoimport-dn
parent9ef9b12bc2ee061c9e242ca7236deeac587691b0 (diff)
improved title and last-run reporting
Diffstat (limited to 'rhautoimport-dn')
-rwxr-xr-xrhautoimport-dn3
1 files changed, 3 insertions, 0 deletions
diff --git a/rhautoimport-dn b/rhautoimport-dn
index d4bab91..b29ef1a 100755
--- a/rhautoimport-dn
+++ b/rhautoimport-dn
@@ -38,6 +38,7 @@ my $FILES_RSS_URL = "https://www.democracynow.org/podcast-stations.xml";
my $HEADLINES_RSS_URL = "http://www.democracynow.org/podcast.xml";
my $RD_GROUP = "democracyn";
my $PV_ID = '111';
+my $TITLE="Democracy Now!";
my $LAST_RUN = 0;
binmode(STDIN, ":utf8");
@@ -48,6 +49,8 @@ if($#ARGV >= 0 && $ARGV[0] eq 'last') {
print "!!!This is the last attempt, there won't be a retry on error!!!\n";
$LAST_RUN = 1;
}
+rhautoimport::report_title_and_last($TITLE, $LAST_RUN);
+
my @today = Date::Calc::Today();
my @yesterday = Date::Calc::Add_Delta_Days(@today, -1);