Browse files

Fix MythWeb Upcoming Recordings programinfo usage.

The programinfo refactor in #8406 changed the order of fields returned
in a programinfo string list, and a reference was missed in the MythWeb
Schedule class.  The result is that any recording rule with recordid of
6 was skipped/didn't show in Upcoming Recordings.

The original intent of the code was to skip recordings with recstatus of
rsNotListed (as shown in commits e728aea and 5081035 , committed for
which has since been modified, again, by a41e9657.  (Therefore, the
index in this commit is correct for 0.25-fixes and above, but should be
18 for 0.24-fixes.)

Thanks to JK on the -users list for finding the issue.
  • Loading branch information...
1 parent 8c43d8d commit 39a5dcd101ce7a6b97474f7b824b358f6e05c0cd @sphery sphery committed May 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/tv/classes/Schedule.php
2 modules/tv/classes/Schedule.php
@@ -151,7 +151,7 @@ public static function &findScheduled() {
foreach (MythBackend::find()->queryProgramRows('QUERY_GETALLPENDING', 2) as $key => $program) {
if ($key === 'offset')
- if ($program[21] == 6)
+ if ($program[20] == 6)
// Normal entry: $scheduledRecordings[callsign][starttime][]
self::$scheduledRecordings[$program[8]][$program[12]][] =& new Program($program);

0 comments on commit 39a5dcd

Please sign in to comment.