From 661bf8aea88508ee89c08ee6ede2220f4e035176 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 8 Jul 2015 17:44:34 +0200 Subject: added support for jingle dropboxes diff --git a/lib/rddb.pm b/lib/rddb.pm index 1d6102a..a5c1f20 100755 --- a/lib/rddb.pm +++ b/lib/rddb.pm @@ -167,6 +167,11 @@ sub get_dropboxes substr($p[3], 2, 0) = ':'; $entry->{'SHOWSTARTTIME'} = $p[3]; $entry->{'SHOWLEN'} = int $p[4]; + } elsif($p[0] eq "J") { + $entry->{'TYPE'} = 'jingle'; + $entry->{'JINGLETITLE'} = $groupdesc; + $entry->{'JINGLECART'} = int $p[1]; + $entry->{'JINGLECARTDISABLED'} = int $p[2]; } push @allowed_dbs, $entry; diff --git a/rh-bin/listdropboxes.cgi b/rh-bin/listdropboxes.cgi index 189e6cf..bfdc925 100755 --- a/rh-bin/listdropboxes.cgi +++ b/rh-bin/listdropboxes.cgi @@ -83,6 +83,10 @@ if($responsecode != 200) { print " " . $href->{'SHOWDOW'} . "\n"; print " " . $href->{'SHOWSTARTTIME'} . "\n"; print " " . $href->{'SHOWLEN'} . "\n"; + } elsif($href->{'TYPE'} eq "jingle") { + print " " . $href->{'JINGLETITLE'} . "\n"; + print " " . $href->{'JINGLECART'} . "\n"; + print " " . $href->{'JINGLECARTDISABLED'} . "\n"; } print " \n"; } -- cgit v0.10.2