[mythtv-commits] Ticket #8487: Never Record sometimes fails on MythWeb
MythTV
mythtv at cvs.mythtv.org
Sun May 23 11:32:15 UTC 2010
#8487: Never Record sometimes fails on MythWeb
-----------------------------------------------+----------------------------
Reporter: Doug Haber <doug@…> | Owner: kormoc
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: Plugin - MythWeb | Version: Trunk Head
Severity: medium | Mlocked: 0
-----------------------------------------------+----------------------------
Hi,
[[BR]][[BR]]
I have two back-to-back scheduled recordings (8pm and 9pm). When I click
"Never Record" on the Upcoming Recordings page for the first one, the
schedule updates properly. However, when I click "Never Record" for the
second one, the schedule is not updated (instead a Never Record row is
inserted into the oldrecordings table for the first one). If I use
MythFrontend instead, everything works.
[[BR]][[BR]]
I did some research and I found the following:
[[BR]][[BR]]
The url for Never Record is something like:
/mythweb/tv/upcoming/<chanid>/<starttime>?never_record=yes and the chan id
and starttime are always correct. This hits modules/tv/upcoming.php loads
the program and calls $program->rec_never_record at line ~40. The problem
is at this point $program is pointing to the wrong program (8pm not 9pm).
$program is loaded via load_one_program from tv/includes/programs.php
which in turn calls load_all_program_data. load_all_program data
correctly looks up the chanid & starttime, however, it compares this data
to the data in the $Scheduled_Recordings array around line ~193. Here it
incorrectly finds a match, gets confused and uses the 8pm show instead of
the 9pm show. The data appears to get incorrectly loaded into the
Scheduled_Recordings array in tv/includes/recording_schedules.php around
line 84. For some reason the foreach loop returns the starttime for the
8pm show as if it were at 9pm. I'm not sure why that happens, but because
it finds the wrong starttime, the values gets messed up and (eventually)
"Never Record" inserts a row for the wrong program.
[[BR]][[BR]]
Thanks![[BR]]
Doug
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/8487>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list