[mythtv] [PATCH] Tiny mythweb listing patch
Tako Schotanus
quintesse at palacio-cristal.com
Wed Aug 6 20:49:55 EDT 2003
Finally got round to doing the same patch for mythweb2 that I did for
the EPG some time ago: ignore channels that don't have channel numbers.
The channels can't be used anyway so why show them? :-) (for a complete
explanation why it is even possible to have channels without channel
numbers just see my original messages about the subject.)
Cheers,
-Tako
PS: Can somebody tell me what the freqid field in the channels table is for?
-------------- next part --------------
Index: program_listing.php
===================================================================
RCS file: /var/lib/mythcvs/mythweb2/program_listing.php,v
retrieving revision 1.1.1.1
diff -b -u -2 -r1.1.1.1 program_listing.php
--- program_listing.php 25 Jul 2003 01:29:36 -0000 1.1.1.1
+++ program_listing.php 6 Aug 2003 17:44:39 -0000
@@ -57,7 +57,8 @@
$channel_count = 0;
foreach (array_keys($Channels) as $key) {
- $channel_count++;
// Grab the reference
$channel = &$Channels[$key];
+ if ($channel->channum != '') {
+ $channel_count++;
// Print the data
$Page->print_channel(&$channel, $list_starttime, $list_endtime);
@@ -67,4 +68,5 @@
if ($channel_count % timeslotbar_skip == 0)
$Page->print_timeslots($Timeslots, $list_starttime, $list_endtime, $channel_count);
+ }
}
More information about the mythtv-dev
mailing list