<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
So I was noticing that NCIS: Los Angeles would not show up in
'Upcoming Recordings'. After a little investigative work, I've
found the source of the problem but don't know why.
<br>
<br>
Snippet of function causing the problem:
/var/www/localhost/htdocs/mythweb/modules/tv/classes/Schedule.php
<br>
<br>
public static function &findScheduled() {
<br>
if (is_null(self::$scheduledRecordings))
<br>
self::$scheduledRecordings =&
Cache::get('Schedule::findScheduled');
<br>
<br>
if (is_null(self::$scheduledRecordings)) {
<br>
foreach
(MythBackend::find()->queryProgramRows('QUERY_GETALLPENDING', 2)
as $key => $program) {
<br>
if ($key === 'offset')
<br>
continue;
<br>
if ($program[21] == 6) <---------------------
THIS IS THE FAILURE POINT
<br>
continue;
<br>
// Normal entry:
$scheduledRecordings[callsign][starttime][]
<br>
self::$scheduledRecordings[$program[8]][$program[12]][] =& new
Program($program);
<br>
#printf('
<br>
}
<br>
Cache::set('Schedule::findScheduled',
self::$scheduledRecordings);
<br>
}
<br>
return self::$scheduledRecordings;
<br>
}
<br>
<br>
<br>
$program[21] related to RECORDID value coming from the RECORD
table. Checking the table, indeed the NCIS:Los Angeles does have a
value of 6 for the recordid column.
<br>
<br>
Why would it be choosing to ignore any recordings where RECORDID
equals a value of 6?
<br>
Is the code above wrong?
<br>
<br>
-JK<em></em>
</body>
</html>