[mythtv-commits] Ticket #3654: MythWeb listings exclude channels with identical callsigns

MythTV mythtv at cvs.mythtv.org
Thu Jun 21 21:34:27 UTC 2007


#3654: MythWeb listings exclude channels with identical callsigns
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |       Owner:  xris   
     Type:  defect     |      Status:  new    
 Priority:  minor      |   Milestone:  unknown
Component:  mythweb    |     Version:  head   
 Severity:  low        |     Mlocked:  0      
-----------------------+----------------------------------------------------
 When viewing the program listings in MythWeb, only the first occurrence of
 a channel will appear in the listings if there is more than one channel
 with a particular callsign. In the unpatched screenshot, only the first
 occurrence of the channel with the callsign of "SPORT" is listed, despite
 the fact that there are other channels with program info within the given
 time period. The cause of this issue appears to be changeset #13136.

 After looking over the code it appears that the portion of the code
 causing the problem is within the modules/tv/includes/channels.php file
 that creates the $Callsigns array and keys it off of the channel callsign,
 even though callsigns are not unique in the channels table. The solution
 is to switch the key/value so that the callsign is the value and the
 chanid is the key instead of the other way around.

 Attached are before/after screenshots and a patch to fix it.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3654>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list