Ticket #1875: mythweb_decode_progflags.patch

File mythweb_decode_progflags.patch, 2.2 KB (added by david.asher@…, 18 years ago)

make programs.php decode returned programflags

  • mythweb/includes/programs.php

     
    343343                $this->thumb_url = root.cache_dir.'/'.str_replace('%2F', '/', rawurlencode(basename($this->filename)));
    344344            }
    345345        // Assign the program flags
    346             $this->has_commflag = ($progflags & 0x01) ? true : false;    // FL_COMMFLAG  = 0x01
    347             $this->has_cutlist  = ($progflags & 0x02) ? true : false;    // FL_CUTLIST   = 0x02
    348             $this->auto_expire  = ($progflags & 0x04) ? true : false;    // FL_AUTOEXP   = 0x04
    349             $this->is_editing   = ($progflags & 0x08) ? true : false;    // FL_EDITING   = 0x08
    350             $this->bookmark     = ($progflags & 0x10) ? true : false;    // FL_BOOKMARK  = 0x10
     346            $this->has_commflag   = ($progflags & 0x001) ? true : false;    // FL_COMMFLAG       = 0x001
     347            $this->has_cutlist    = ($progflags & 0x002) ? true : false;    // FL_CUTLIST        = 0x002
     348            $this->auto_expire    = ($progflags & 0x004) ? true : false;    // FL_AUTOEXP        = 0x004
     349            $this->is_editing     = ($progflags & 0x008) ? true : false;    // FL_EDITING        = 0x008
     350            $this->bookmark       = ($progflags & 0x010) ? true : false;    // FL_BOOKMARK       = 0x010
     351                                                                            // FL_INUSERECORDING = 0x020
     352                                                                            // FL_INUSEPLAYING   = 0x040
     353            $this->stereo         = ($progflags & 0x080) ? true : false;    // FL_STEREO         = 0x080
     354            $this->closecaptioned = ($progflags & 0x100) ? true : false;    // FL_CC             = 0x100
     355            $this->hdtv           = ($progflags & 0x200) ? true : false;    // FL_HDTV           = 0x200
     356                                                                            // FL_TRANSCODED     = 0x400
    351357        // Add a generic "will record" variable, too
    352358            $this->will_record = ($this->rectype && $this->rectype != rectype_dontrec) ? true : false;
    353359        }