diff options
author | Christian Pointner <equinox@helsinki.at> | 2014-09-19 23:00:00 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2014-09-19 23:00:00 (GMT) |
commit | a3463648d1c70337a5bc2919a88eeace36c6499f (patch) | |
tree | 148c55b0029ac42abe376d53fa2e169821cbab08 /listdrobpoxes.cgi | |
parent | 182f4a3b309df797350b6492a57b69405e67ab73 (diff) |
list dropboxes now parses new improved format
Diffstat (limited to 'listdrobpoxes.cgi')
-rwxr-xr-x | listdrobpoxes.cgi | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/listdrobpoxes.cgi b/listdrobpoxes.cgi index f2dec4f..c1efb06 100755 --- a/listdrobpoxes.cgi +++ b/listdrobpoxes.cgi @@ -46,10 +46,19 @@ if($responsecode != 200) { print "<dropboxList>\n"; for my $href (@dropboxes) { print " <dropbox>\n"; - print " <name>" . $href->{'NAME'} . "</name>\n"; print " <group>" . $href->{'GROUP'} . "</group>\n"; - print " <path>" . $href->{'PATH'} . "</path>\n"; - print " <to_cart>" . $href->{'TO_CART'} . "</to_cart>\n"; + print " <group-description>" . $href->{'GROUPDESC'} . "</group-description>\n"; + print " <type>" . $href->{'TYPE'} . "</type>\n"; + print " <showid>" . $href->{'SHOWID'} . "</showid>\n"; + print " <normalization-level>" . $href->{'NORMLEVEL'} . "</normalization-level>\n"; + print " <autotrim-level>" . $href->{'TRIMLEVEL'} . "</autotrim-level>\n"; + print " <parameters>" . $href->{'PARAM'} . "</parameters>\n"; + if($href->{'TYPE'} eq "show") { + print " <show-rhythm>" . $href->{'RHYTHM'} . "</show-rhythm>\n"; + print " <show-dayofweek>" . $href->{'DOW'} . "</show-dayofweek>\n"; + print " <show-starttime>" . $href->{'STARTTIME'} . "</show-starttime>\n"; + print " <show-length>" . $href->{'LENGTH'} . "</show-length>\n"; + } print " </dropbox>\n"; } print "</dropboxList>\n"; |