[mythtv] [mythtv-commits] Ticket #3358: group top channels by name in mythweb stats

Michael T. Dean mtdean at thirdcontact.com
Thu Apr 26 17:23:32 UTC 2007

On 04/26/2007 01:01 PM, MythTV wrote:
> #3358: group top channels by name in mythweb stats
>  If you have two different video sources that share some channels you have
>  duplicate channels in the top channel list. I think it's better to sort by
>  the channel name.

The channel name is not a unique identifier for Myth.  Instead, the 
callsign is used by MythTV to determine which channels are "equal" (i.e. 
that they show the same programming content).  Therefore, to prevent 
duplicates, grouping should be done by callsign.

Those not in the US may be thinking, "But we don't use callsigns..."  In 
fact, if you use MythTV, you do.  Unfortunately, because of the decision 
to use the US-centric "callsign" moniker for the table column name, it 
looks like it's US-only.

However, the specific value of the callsign is irrelevant.  The only 
requirement is that each channel with unique content has a unique 
value.  Those with identical content can have identical values (so Myth 
knows they're the same) or different (so the user can choose which 
channel is used to record scheduled recordings--i.e. allows the user to 
treat them as different channels).

So, Wolfgang, by updating your patch to group by callsign and making 
sure your callsigns are unique or not-unique as your channel names, 
you'll get the behavior you desire, and MythWeb will get the behavior it 
should have.  :)  (Unfortunately, you might not be able to just update 
your callsigns to be equal to names if you've used names longer than 20 
characters.  The callsign column is 20 characters, but the name column 
is 64.)


More information about the mythtv-dev mailing list