summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-12-03 21:59:25 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-12-03 21:59:25 (GMT)
commit6fcddf19fdaac1b4ca09011c138553810bdf9e15 (patch)
tree6ba69f99f853806fbcf0bcb66890c7aa54ad4b13
parentf40e2b4db40b871666c669de8f3a5a23db4fb176 (diff)
fix printing of special shows
-rwxr-xr-xutils/rhrd-show4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/rhrd-show b/utils/rhrd-show
index ca62fa5..09f8c8d 100755
--- a/utils/rhrd-show
+++ b/utils/rhrd-show
@@ -98,7 +98,9 @@ sub show
}
$show->{'DOW'} = 7 if $show->{'DOW'} == 0;
my $showtype = RHRD::utils::dropbox_param_showtype_to_string($show->{'TYPE'});
- print $show->{'TITLE'} . ": " . join(", ", $show->{'RHYTHM'}, Date::Calc::Day_of_Week_to_Text($show->{'DOW'}), $show->{'STARTTIME'}, ($show->{'LEN'} . " min"), $showtype) . "\n";
+ my $dowstr = "-";
+ $dowstr = Date::Calc::Day_of_Week_to_Text($show->{'DOW'}) if($show->{'DOW'} >= 0);
+ print $show->{'TITLE'} . ": " . join(", ", $show->{'RHYTHM'}, $dowstr, $show->{'STARTTIME'}, ($show->{'LEN'} . " min"), $showtype) . "\n";
print " group: " . $show->{'GROUP'} . ", carts(" . scalar(@carts) . "): " . join(", ", @carts) . "\n";
return 0;
}