summaryrefslogtreecommitdiff
path: root/rhautoimport-oi
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-03-13 00:44:05 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-03-13 00:44:05 (GMT)
commit7ffd297bd4120690e45b7aa7d98f9c8472a1b3ec (patch)
tree7c554ae088e70a5ec849ed6e66ec025430c69c6a /rhautoimport-oi
parent66727097e79e98dc99b7c65105bb941ddf55e934 (diff)
added external bounding checks to respective scripts
Diffstat (limited to 'rhautoimport-oi')
-rwxr-xr-xrhautoimport-oi7
1 files changed, 7 insertions, 0 deletions
diff --git a/rhautoimport-oi b/rhautoimport-oi
index f558c5e..a261055 100755
--- a/rhautoimport-oi
+++ b/rhautoimport-oi
@@ -29,6 +29,7 @@ use XML::Feed::Content;
use XML::Feed::Enclosure;
use URI::URL;
use HTML::Entities;
+use RHRD::utils;
use lib '/usr/local/share/rhautoimport/';
use rhautoimport;
@@ -39,6 +40,12 @@ my $RSS_URL = "http://npla.de/onda/feed/serie=3";
my $RD_GROUP = "ondainfo";
my $PV_ID = '220';
+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";
+ exit 42;
+}
+
if($#ARGV >= 0 && $ARGV[0] eq 'last') {
print "!!!This is the last attempt, there won't be a retry on error!!!\n"
}