Ticket #5578: mythweb-transcodepatch-trunk.diff

File mythweb-transcodepatch-trunk.diff, 2.1 KB (added by simonwalls@…, 16 years ago)

revised patch for mythweb in Trunk version 18494

  • modules/tv/classes/Program.php

     
    107107    public $is_editing         = 0;
    108108    public $is_movie;
    109109    public $is_watched         = 0;
     110    public $is_transcoded      = 0;
    110111    public $length;
    111112    public $max_episodes       = 0;
    112113    public $max_newest         = 0;
     
    200201            $this->bookmark       = ($this->progflags & 0x010) ? true : false;    // FL_BOOKMARK       = 0x010
    201202            $this->is_recording   = ($this->progflags & 0x020) ? true : false;    // FL_INUSERECORDING = 0x020
    202203            $this->is_playing     = ($this->progflags & 0x040) ? true : false;    // FL_INUSEPLAYING   = 0x040
    203                                                                                   // FL_TRANSCODED     = 0x400
     204            $this->is_transcoded  = ($this->progflags & 0x400) ? true : false;    // FL_TRANSCODED     = 0x400
    204205            $this->is_watched     = ($this->progflags & 0x800) ? true : false;    // FL_WATCHED        = 0x800
    205206        // Can be deleted?
    206207            $this->can_delete     = (!$this->is_recording && !$this->is_playing) || $this->recgroup != 'LiveTV';
  • modules/tv/tmpl/default/detail.php

     
    162162                echo '<img src="'.skin_url.'/img/flags/bookmark.png" title="'.t('has Bookmark').'">';
    163163            if ($program->is_watched)
    164164                echo '<img src="'.skin_url.'/img/flags/watched.png" title="'.t('Watched').'">';
     165
     166            // Report transcoded status for recordings
     167            if ($program->filename) {
     168                if ($program->is_transcoded)
     169                echo ' TRANSCODED';
     170                else
     171                echo ' NON-TRANSCODED';
     172            };
    165173            ?></td>
    166174        </tr><?php
    167175            if (strlen($program->category)) {