diff options
Diffstat (limited to 'rhautoimport-rs')
-rwxr-xr-x | rhautoimport-rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rhautoimport-rs b/rhautoimport-rs index 2d9ffab..eda9946 100755 --- a/rhautoimport-rs +++ b/rhautoimport-rs @@ -41,6 +41,7 @@ my $RD_GROUP = "radioStimm"; my $PV_ID = '75'; my $TITLE="Radio Stimme"; 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"); @@ -120,7 +121,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; } |