From 3607d75e5cb24a30cd1f944d01c2d6d7c8470429 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 9 Oct 2015 02:27:57 +0200 Subject: semantics of DOW and STARTTIME has changed diff --git a/rh-bin/listdropboxes.cgi b/rh-bin/listdropboxes.cgi index f00e28e..a451dc7 100755 --- a/rh-bin/listdropboxes.cgi +++ b/rh-bin/listdropboxes.cgi @@ -77,12 +77,16 @@ if($responsecode != 200) { print " " . xml_quote($href->{'PARAM'}) . "\n"; print " " . xml_quote($href->{'TYPE'}) . "\n"; if($href->{'TYPE'} eq "show") { + my $dow = $href->{'SHOWDOW'}; + $dow = 0 unless $dow < 7; + my $starttime = $href->{'SHOWSTARTTIME'}; + substr($starttime, 2, 0) = ':'; print " " . xml_quote($href->{'SHOWID'}) . "\n"; print " " . xml_quote($href->{'SHOWTITLE'}) . "\n"; print " " . xml_quote($href->{'SHOWLOG'}) . "\n"; print " " . xml_quote($href->{'SHOWRHYTHM'}) . "\n"; - print " " . xml_quote($href->{'SHOWDOW'}) . "\n"; - print " " . xml_quote($href->{'SHOWSTARTTIME'}) . "\n"; + print " " . xml_quote($dow) . "\n"; + print " " . xml_quote($starttime) . "\n"; print " " . xml_quote($href->{'SHOWLEN'}) . "\n"; } elsif($href->{'TYPE'} eq "jingle") { print " " . xml_quote($href->{'JINGLETITLE'}) . "\n"; -- cgit v0.10.2