Ticket #840: mythweb.oldrecorded.diff
File mythweb.oldrecorded.diff, 3.3 KB (added by , 18 years ago) |
---|
-
includes/programs.php
116 116 .' UNIX_TIMESTAMP(program.endtime) AS endtime_unix,' 117 117 .' CONCAT(repeat('.escape(star_character).', program.stars * '.escape(max_stars).'), IF((program.stars * '.escape(max_stars).' * 10) % 10, "½", "")) AS starstring,' 118 118 .' IFNULL(programrating.system, "") AS rater,' 119 .' IFNULL(programrating.rating, "") AS rating' 120 .' FROM program LEFT JOIN programrating USING (chanid, starttime)' 119 .' IFNULL(programrating.rating, "") AS rating,' 120 .' oldrecorded.recstatus' 121 .' FROM (program LEFT JOIN oldrecorded USING (seriesid, programid))' 122 .' LEFT JOIN programrating USING (chanid, starttime)' 121 123 .' WHERE'; 122 124 // Only loading a single channel worth of information 123 125 if ($chanid > 0) … … 309 311 $this->auto_expire = ($progflags & 0x04) ? true : false; // FL_AUTOEXP = 0x04 310 312 $this->is_editing = ($progflags & 0x08) ? true : false; // FL_EDITING = 0x08 311 313 $this->bookmark = ($progflags & 0x10) ? true : false; // FL_BOOKMARK = 0x10 312 // Turn recstatus into a word313 if (isset($this->recstatus) && $GLOBALS['RecStatus_Types'][$this->recstatus])314 $this->recstatus = $GLOBALS['RecStatus_Types'][$this->recstatus];315 314 // Add a generic "will record" variable, too 316 315 $this->will_record = ($this->rectype && $this->rectype != rectype_dontrec) ? true : false; 317 316 } … … 343 342 $this->colorcode = $data['colorcode']; 344 343 $this->syndicatedepisodenumber = $data['syndicatedepisodenumber']; 345 344 $this->title_pronounce = $data['title_pronounce']; 345 $this->recstatus = $data['recstatus']; 346 346 347 347 if ($program_data['tsdefault']) { 348 348 $this->timestretch = $program_data['tsdefault']; … … 350 350 $this->timestretch = 1.0; 351 351 } 352 352 } 353 354 // Turn recstatus into a word 355 if (isset($this->recstatus) && $GLOBALS['RecStatus_Types'][$this->recstatus]) 356 $this->recstatus = $GLOBALS['RecStatus_Types'][$this->recstatus]; 357 353 358 // No longer a null column, so check for blank entries 354 359 if ($this->airdate == '0000-00-00') 355 360 $this->airdate = NULL; -
includes/css.php
47 47 status. 48 48 */ 49 49 function recstatus_class(&$item) { 50 if ($item->rec ordid&& !strcasecmp(get_class($item), 'program')) {50 if ($item->recstatus && !strcasecmp(get_class($item), 'program')) { 51 51 switch ($item->recstatus) { 52 52 case 'ForceRecord': 53 53 return 'record_override_record'; … … 58 58 return 'record_conflicting'; 59 59 case 'PreviousRecording': 60 60 case 'CurrentRecording': 61 case 'Recorded': 61 62 return 'record_duplicate'; 62 63 case 'ManualOverride': 63 64 case 'Cancelled':