[mythtv] [mythtv-commits] Ticket #2272: incorrect title in mythweb display

Bruce Markey bjm at lvcm.com
Wed Aug 30 03:17:23 UTC 2006


Nick wrote:
[snip inexact whining and half-assed guesses...]

> I have this behaviour with my 3 weekly record rules created before
> updating to current (10943) SVN.
> 
> In MythWeb's Upcoming Recordings, any weekly rules that do not have a
> matching program in the next week's listings (wrt the day of the week
> the rule is set to) appear as deactivated recordings with note "This
> show does not match the current programme listings." which is also how
> the Upcoming Recordings list in the frontend behaves.

Perfect. That is exactly what should happen...

> However, in MythWeb EPG, each of the 3 weekly record rules (none are
> currently matching any programs in the current listings) have resulted
> in changes to the titles of the programs that occupy the timeslot that

...but this should not happen. These should not over-write the
program info from the 'program' table (i.e. TV listings or "guide").

> these rules match against - but only for the next potential recording.

Correct, the NotListed entries are only added once for the
earliest upcoming timeslot of the rule. However, these should
not replaced the actual program in the listings and should only
appear in the upcoming recordings list.


Chris,

This look like it may be a problem in includes/programs.php
around line 190:

// This program has already been loaded, and is attached to a recording schedule
   if ($Scheduled_Recordings[$data['channum']][$data['starttime_unix']]) {
       $program =& $Scheduled_Recordings[$data['channum']][$data['starttime_unix']][0];

This is checking the channum and starttime and if they match,
keeping the info from the scheduler rather than the info from
the listings.

This should check the 'title' also otherwise real listings might
(okay, will) be replaced by manual entries or Not Listed entries.

Also, 'channum' could cause problems. Two different sources could
have different stations on the same channel number and without
checking the title, this could create some very bogus results
if that were the case. In this context of matching programs in
the scheduled recordings lists with the TV listings, this should
probably be matching the 'callsign' instead as mythfrontend does.

So, I think this should be checking 'callsign', 'starttime_unix'
and 'title' before deciding to do "$program =& ...". Can you look
into this?

--  bjm


More information about the mythtv-dev mailing list