summaryrefslogtreecommitdiff
path: root/rhautoimport-wr
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2017-06-29 11:51:59 (GMT)
committerChristian Pointner <equinox@helsinki.at>2017-06-29 11:51:59 (GMT)
commitaf3d3efb80733f1bf6dac87ca2c5b75e19d23527 (patch)
treed74ab3b93caa06f5db5aadaabc642db380c2ce5f /rhautoimport-wr
parentbf5b72a55624634eaac830e4c95dc35b87d0ec1e (diff)
added importer for fokus bildung
Diffstat (limited to 'rhautoimport-wr')
-rwxr-xr-xrhautoimport-wr3
1 files changed, 2 insertions, 1 deletions
diff --git a/rhautoimport-wr b/rhautoimport-wr
index 2765b9b..f67d415 100755
--- a/rhautoimport-wr
+++ b/rhautoimport-wr
@@ -42,6 +42,7 @@ my $RD_GROUP = "werkstatt";
my $PV_ID = '567';
my $TITLE="Werkstatt-Radio";
my $LAST_RUN = 0;
+my $upload_delay_days = 0; # files are usally there on the same day of the original broadcast
binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
@@ -96,7 +97,7 @@ if(Date::Calc::Delta_Days(@broadcast_date, @import_date) <= 0) {
}
print "day of latest original broadcast before next Radio Helsinki broadcast: " . Date::Calc::Date_to_Text(@broadcast_date) . "\n";
-if(Date::Calc::Delta_Days(@broadcast_date, @today) <= 0) {
+if(Date::Calc::Delta_Days(@broadcast_date, @today) <= $upload_delay_days) {
print "File won't be available by now!\n";
exit 42;
}