summaryrefslogtreecommitdiff
path: root/rhautoimport-oi
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-oi
parent9ef9b12bc2ee061c9e242ca7236deeac587691b0 (diff)
improved title and last-run reporting
Diffstat (limited to 'rhautoimport-oi')
-rwxr-xr-xrhautoimport-oi3
1 files changed, 3 insertions, 0 deletions
diff --git a/rhautoimport-oi b/rhautoimport-oi
index dd6a2fc..274ad9d 100755
--- a/rhautoimport-oi
+++ b/rhautoimport-oi
@@ -39,6 +39,7 @@ my $LAST_FILE = $ENV{'HOME'} . "/rhautoimport-oi.last";
my $RSS_URL = "https://www.npla.de/feed/podcast/?podcast_series=onda-info";
my $RD_GROUP = "ondainfo";
my $PV_ID = '220';
+my $TITLE="Onda-Info";
my $LAST_RUN = 0;
binmode(STDIN, ":utf8");
@@ -48,6 +49,7 @@ binmode(STDERR, ":utf8");
my $curweek = RHRD::utils::get_rd_week();
if($curweek == 1 || $curweek == 3) {
print "please don't run this script in week 1 or 3!\n";
+ rhautoimport::report_title_and_last($TITLE, 0);
exit 42;
}
@@ -55,6 +57,7 @@ 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 @allowed_dbs = rhautoimport::get_dropboxes($RD_GROUP);