diff options
Diffstat (limited to 'utils/rhrd-schedules')
-rwxr-xr-x | utils/rhrd-schedules | 12 |
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; |