summaryrefslogtreecommitdiff
path: root/utils/rhrd-schedules
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-14 14:54:54 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-14 14:54:54 (GMT)
commit0966b894742c543b0a6a8ecb854dcaaea6813e15 (patch)
tree3ee713494cc6aef4e11484ba32349e3d2a1f196d /utils/rhrd-schedules
parent20ff694433ef9f658cc58da64484f008f95545da (diff)
adding multi-show works now
Diffstat (limited to 'utils/rhrd-schedules')
-rwxr-xr-xutils/rhrd-schedules12
1 files changed, 11 insertions, 1 deletions
diff --git a/utils/rhrd-schedules b/utils/rhrd-schedules
index 92dc9be..aab258f 100755
--- a/utils/rhrd-schedules
+++ b/utils/rhrd-schedules
@@ -63,7 +63,17 @@ sub generate
$errcnt++;
next;
}
- my ($exists, $status, $errorstring) = RHRD::rddb::check_show_exists($ctx, $showid);
+ my ($showid_min, $showid_max, $errorstring) = RHRD::rddb::get_showid_range($ctx);
+ unless(defined $showid_min) {
+ print "$showid_max: $errorstring\n";
+ return 1;
+ }
+ if ($showid < $showid_min || $showid > $showid_max) {
+ print "WARNING: skipping entry whith out of range automation id ($showid) -> $start: $title ($pvid)\n";
+ next;
+ }
+
+ (my $exists, my $status, $errorstring) = RHRD::rddb::check_show_exists($ctx, $showid);
unless(defined $exists) {
print "$status: $errorstring\n";
return 1;