[mythtv-commits] Ticket #13073: Detailed channel listing repeats title when it has multiple program ratings

MythTV noreply at mythtv.org
Mon Jul 17 22:39:02 UTC 2017


#13073: Detailed channel listing repeats title when it has multiple program ratings
--------------------------------------+---------------------
     Reporter:  davos9554@…           |      Owner:  stuarta
         Type:  Bug Report - General  |     Status:  new
     Priority:  minor                 |  Milestone:  unknown
    Component:  Plugin - MythWeb      |    Version:  0.28.1
     Severity:  medium                |   Keywords:
Ticket locked:  0                     |
--------------------------------------+---------------------
 The query used in the detailed channel listing appears to repeat titles
 when there is more than 1 related programrating record.

 It appears to be caused by this query from
 modules/tv/includes/programs.php


 SELECT DISTINCT program.*,
                          UNIX_TIMESTAMP(program.starttime) AS
 starttime_unix,
                          UNIX_TIMESTAMP(program.endtime) AS endtime_unix,
                          IFNULL(programrating.system, "") AS rater,
                          IFNULL(programrating.rating, "") AS rating,
                          channel.callsign,
                          channel.channum
                   FROM program USE INDEX (id_start_end)
                        LEFT JOIN programrating USING (chanid, starttime)
                        LEFT JOIN channel USING (chanid)
                        LEFT JOIN credits USING (chanid, starttime)
                        LEFT JOIN people USING (person)
                  WHERE  program.chanid=1698
                  AND program.starttime = '2017-07-22 08:00:00'

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13073>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list