Index: mythweb/themes/wml/tv/list.php
===================================================================
--- mythweb/themes/wml/tv/list.php (revision 8891)
+++ mythweb/themes/wml/tv/list.php (working copy)
@@ -110,6 +110,7 @@
if (($page * $page_size) < count($Channels)) echo ' next >';
echo "
";
+ $displayed_channels = array();
foreach (array_keys($Channels) as $key) {
$row++;
@@ -124,6 +125,11 @@
continue;
}
+ // Skip already-displayed channels
+ if ($displayed_channels[$Channels[$key]->channum])
+ continue;
+ $displayed_channels[$Channels[$key]->channum] = 1;
+
echo "".$Channels[$key]->callsign."
";
// Count this channel
Index: mythweb/themes/default/tv/list.php
===================================================================
--- mythweb/themes/default/tv/list.php (revision 8891)
+++ mythweb/themes/default/tv/list.php (working copy)
@@ -100,6 +100,7 @@
$timeslot_anchor = 0;
$channel_count = 0;
+ $displayed_channels = array();
// Go through each channel and load/print its info - use references to avoid "copy" overhead
@@ -111,6 +112,10 @@
if ($channel->visible == 0) {
continue;
}
+ // Skip already-displayed channels
+ if ($displayed_channels[$channel->channum])
+ continue;
+ $displayed_channels[$channel->channum] = 1;
// Display the timeslot bar?
if ($channel_count % timeslotbar_skip == 0) {
// Update the timeslot anchor
Index: mythweb/themes/wap/tv/list.php
===================================================================
--- mythweb/themes/wap/tv/list.php (revision 8891)
+++ mythweb/themes/wap/tv/list.php (working copy)
@@ -60,10 +60,15 @@
// Go through each channel and load/print its info - use references to avoid "copy" overhead
$channel_count = 0;
+ $displayed_channels = array();
foreach (array_keys($Channels) as $key) {
// Ignore channels with no number
if (strlen($Channels[$key]->channum) < 1)
continue;
+ // Skip already-displayed channels
+ if ($displayed_channels[$Channels[$key]->channum])
+ continue;
+ $displayed_channels[$Channels[$key]->channum] = 1;
// Count this channel
$channel_count++;
// Grab the reference
Index: mythweb/includes/channels.php
===================================================================
--- mythweb/includes/channels.php (revision 8891)
+++ mythweb/includes/channels.php (working copy)
@@ -31,8 +31,8 @@
else
$sql = 'SELECT * FROM channel WHERE';
$sql .= ' channel.visible=1';
- // Group and sort
- $sql .= ' GROUP BY channel.channum ORDER BY '
+ // Sort.
+ $sql .= ' ORDER BY '
.(sortby_channum ? '' : 'channel.callsign, ')
.'(channel.channum + 0), channel.chanid';
// Query
Index: mythweb/modules/tv/recorded.php
===================================================================
--- mythweb/modules/tv/recorded.php (revision 8891)
+++ mythweb/modules/tv/recorded.php (working copy)
@@ -13,6 +13,9 @@
*
/**/
+// Populate the $Channels array
+ load_all_channels();
+
// Make sure the recordings directory exists
if (file_exists('data/recordings')) {
// File is not a directory or a symlink