summaryrefslogtreecommitdiff
path: root/rhautoimport-dte
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2018-10-01 16:18:52 (GMT)
committerChristian Pointner <equinox@helsinki.at>2018-10-01 16:18:52 (GMT)
commit1d349b9d8bd6908e7906448b2b0cdbe080e3586f (patch)
treeacc7bcee41a10b1502f0479edabebe6589f4b056 /rhautoimport-dte
parent3650a2e89f32085a2f8af7157df352ed4d8ee583 (diff)
added dte importer
Diffstat (limited to 'rhautoimport-dte')
-rwxr-xr-xrhautoimport-dte8
1 files changed, 5 insertions, 3 deletions
diff --git a/rhautoimport-dte b/rhautoimport-dte
index 3673a69..532cd01 100755
--- a/rhautoimport-dte
+++ b/rhautoimport-dte
@@ -29,8 +29,6 @@ use XML::Feed::Content;
use XML::Feed::Enclosure;
use URI::URL;
use HTML::Entities;
-## TODO: remove me!
-use lib '../rhrdlibs/lib/';
use RHRD::utils;
use lib '/usr/local/share/rhautoimport/';
@@ -51,6 +49,10 @@ binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
binmode(STDERR, ":utf8");
+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);
@@ -77,7 +79,7 @@ my @today = Date::Calc::Today();
my $dow = Date::Calc::Day_of_Week(@today);
my @import_date = Date::Calc::Standard_to_Business(@today);
-if($dow < 2 || $dow > 6) {
+if($dow <= 2 || $dow > 6) {
$show_id = $allowed_dbs[$idx_tu]->{'SHOWID'};
$show_title = $allowed_dbs[$idx_tu]->{'SHOWTITLE'};
$rd_cart=$RD_CART_TU;