summaryrefslogtreecommitdiff
path: root/rhautoimport-oi
diff options
context:
space:
mode:
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"
}