summaryrefslogtreecommitdiff
path: root/utils/rhrd-schedules
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rhrd-schedules')
-rwxr-xr-xutils/rhrd-schedules11
1 files changed, 10 insertions, 1 deletions
diff --git a/utils/rhrd-schedules b/utils/rhrd-schedules
index b248e4d..7a83458 100755
--- a/utils/rhrd-schedules
+++ b/utils/rhrd-schedules
@@ -56,7 +56,16 @@ sub generate
next if ($start->year != $year || $start->month != $month || $start->day != $day);
if($showid < 0) {
- print "WARNING: skipping entry whith invalid/unset automation id -> $start: $title ($pvid)\n";
+ print "WARNING: skipping entry whith unset automation id -> $start: $title ($pvid)\n";
+ next;
+ }
+ my ($exists, $status, $errorstring) = RHRD::rddb::check_show_exists($ctx, $showid);
+ unless(defined $exists) {
+ print "$status: $errorstring\n";
+ return 1;
+ }
+ if($exists != 1) {
+ print "WARNING: skipping entry whith not existing automation id ($showid) -> $start: $title ($pvid)\n";
next;
}