Ticket #11954: recinput.mythweb.v0.28-pre-9-g61f14b9.patch

File recinput.mythweb.v0.28-pre-9-g61f14b9.patch, 2.4 KB (added by George Nassas <gnassas@…>, 7 years ago)

supersedes recinput.mythweb.v0.28-pre-10-gbb41293.patch

  • modules/tv/classes/Program.php

    From 33fdd95a26c0f9ba533653d47773778c07ed24a2 Mon Sep 17 00:00:00 2001
    From: George Nassas <gnassas@gmail.com>
    Date: Mon, 18 Nov 2013 17:12:59 -0500
    Subject: [PATCH] MythWeb changes
    
    ---
     modules/tv/classes/Program.php | 10 +++-------
     1 file changed, 3 insertions(+), 7 deletions(-)
    
    diff --git a/modules/tv/classes/Program.php b/modules/tv/classes/Program.php
    index 4192235..a49ec09 100644
    a b class Program extends MythBase { 
    129129            $this->partnumber      = $data[46];
    130130            $this->parttotal       = $data[47];
    131131            $this->category_type   = $data[48];
     132            $this->inputname       = $data[49];
    132133        // Is this a previously-recorded program?
    133134            if (!empty($this->filename)) {
    134135                $this->url = video_url($this); // get download info
    class Program extends MythBase { 
    176177            $this->syndicatedepisodenumber  = $data['syndicatedepisodenumber'];
    177178            $this->title_pronounce          = $data['title_pronounce'];
    178179            $this->recstatus                = $data['recstatus'];
     180            $this->inputname                = $data['inputname'];
    179181
    180182        // These db fields should really get renamed...
    181183            $this->audioproperties          = $data['stereo'];
    class Program extends MythBase { 
    206208            $this->starstring .= '&frac12;';
    207209        elseif ($frac >= .25)
    208210            $this->starstring .= '&frac14;';
    209     // Get the name of the input
    210         if ($this->inputid) {
    211             $this->inputname = $db->query_col('SELECT displayname
    212                                                  FROM cardinput
    213                                                 WHERE cardinputid=?',
    214                                               $this->inputid);
    215         }
    216211    // Turn recstatus into a word
    217212        if (isset($this->recstatus) && $GLOBALS['RecStatus_Types'][$this->recstatus]) {
    218213            $this->recstatus_orig   = $this->recstatus;
    class Program extends MythBase { 
    392387                             $this->partnumber     , // 45 partnumber
    393388                             $this->parttotal      , // 46 parttotal
    394389                             $this->category_type  , // 48 category type
     390                             $this->inputname      , // 49 input name
    395391                            )
    396392                      );
    397393    }