Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1c1
- < <?php
- ---
- > /<?php
- 17a18,20
- > t('This time');
- > t('This day and time');
- > t('This channel');
- 291c291,298
- < <?php echo count($All_Videos).' videos'; ?>
- ---
- > <?php
- > $video_count = count($All_Videos);
- > if( $video_count ) {
- > echo tn('$1 video', '$1 videos', $video_count);
- > } else {
- > echo t('No videos');
- > }
- > ?>
- 17c17
- < header('Location: tv/detail/'.urlencode($chanid).'/'.urlencode($starttime));
- ---
- > header('Location: '.root_url.'tv/detail/'.urlencode($chanid).'/'.urlencode($starttime));
- 21c21
- < $Page_Previous_Location = 'tv/detail/'.urlencode($chanid).'/'.urlencode($starttime);
- ---
- > $Page_Previous_Location = root_url.'tv/detail/'.urlencode($chanid).'/'.urlencode($starttime);
- 74,75c74,75
- < // Get the length (26 == recendts; 25 == recstartts)
- < $length = $record[26] - $record[25];
- ---
- > // Get the length (267== recendts; 26 == recstartts)
- > $length = $record[27] - $record[26];
- 80c80
- < $Total_Used = gmp_strval(gmp_add($Total_Used, $record[11]));
- ---
- > $Total_Used = gmp_strval(gmp_add($Total_Used, $record[12]));
- 84c84
- < $Total_Used += $record[11];
- ---
- > $Total_Used += $record[12];
- 88c88
- < $Groups[$record[28]]++;
- ---
- > $Groups[$record[29]]++;
- 90c90
- < if (($_REQUEST['recgroup'] && $_REQUEST['recgroup'] == $record[28]) || (!$_REQUEST['recgroup'] && $record[28] != 'LiveTV' && $record[28] != 'Deleted'))
- ---
- > if (($_REQUEST['recgroup'] && $_REQUEST['recgroup'] == $record[29]) || (!$_REQUEST['recgroup'] && $record[29] != 'LiveTV' && $record[29] != 'Deleted'))
- 98c98
- < if ($_REQUEST['recgroup'] && $_REQUEST['recgroup'] != $record[28])
- ---
- > if ($_REQUEST['recgroup'] && $_REQUEST['recgroup'] != $record[29])
- 101c101
- < if (empty($_REQUEST['recgroup']) && ($record[28] == 'LiveTV' || $record[28] == 'Deleted'))
- ---
- > if (empty($_REQUEST['recgroup']) && ($record[29] == 'LiveTV' || $record[29] == 'Deleted'))
- 55d54
- < var $record_channel = false;
- 107d105
- < case 3: $this->record_channel = true; break;
- 118d115
- < || $this->record_channel
- 19,28c19
- < public $title;
- < public $subtitle;
- < public $description;
- < public $category;
- < public $chanid;
- < public $channum;
- < public $callsign;
- < public $channame;
- < public $filename;
- < public $filesize;
- ---
- > // everything above this line is serialized
- 30,31d20
- < public $starttime;
- < public $endtime;
- 34,66d22
- < public $findid;
- < public $hostname;
- < public $sourceid;
- < public $cardid;
- < public $inputid;
- < public $recpriority = null;
- < public $recstatus;
- < public $recordid;
- <
- < public $rectype;
- < public $dupin;
- < public $dupmethod;
- < public $recstartts;
- < public $recendts;
- < public $progflags;
- < public $recgroup;
- < public $outputfilters;
- < public $seriesid;
- < public $programid;
- <
- < public $lastmodified;
- < public $stars;
- < public $airdate;
- < public $playgroup = 'Default';
- < public $recpriority2 = null;
- <
- < public $parentid;
- < public $storagegroup = 'Default';
- < public $audioproperties = 0;
- < public $videoproperties = 0;
- < public $subtitletype = 0;
- < public $year = 0;
- < // everything above this line is serialized
- 82,83d37
- < public $parttotal = 1;
- < public $partnumber = 1;
- 132,172c86,129
- < $this->category = $data[5];
- < $this->chanid = $data[6]; # mysql chanid
- < $this->channum = $data[7];
- < $this->callsign = $data[8];
- < $this->channame = $data[9];
- < $this->filename = $data[10];
- < $this->filesize = $data[11];
- < $this->starttime = $data[12]; # show start-time
- < $this->endtime = $data[13]; # show end-time
- < $this->findid = $data[14];
- < $this->hostname = $data[15];
- < $this->sourceid = $data[16];
- < $this->cardid = $data[17];
- < $this->inputid = $data[18];
- < $this->recpriority = $data[19];
- < $this->recstatus = $data[20];
- < $this->recordid = $data[21];
- <
- < $this->rectype = $data[22];
- < $this->dupin = $data[23];
- < $this->dupmethod = $data[24];
- < $this->recstartts = $data[25]; # ACTUAL start time (also maps to recorded.starttime)
- < $this->recendts = $data[26]; # ACTUAL end time
- < $this->progflags = $data[27];
- < $this->recgroup = $data[28];
- < $this->outputfilters = $data[29];
- < $this->seriesid = $data[30];
- < $this->programid = $data[31];
- < $this->inetref = $data[32];
- <
- < $this->lastmodified = $data[33];
- < $this->stars = $data[34];
- < $this->airdate = $data[35];
- < $this->playgroup = $data[36];
- < $this->recpriority2 = $data[37];
- < $this->parentid = $data[38];
- < $this->storagegroup = $data[39];
- < $this->audioproperties = $data[40];
- < $this->videoproperties = $data[41];
- < $this->subtitletype = $data[42];
- < $this->year = $data[43];
- ---
- > $this->syndicatedepisodenumber = $data[5];
- > $this->category = $data[6];
- > $this->chanid = $data[7]; # mysql chanid
- > $this->channum = $data[8];
- > $this->callsign = $data[9];
- > $this->channame = $data[10];
- > $this->filename = $data[11];
- > $this->filesize = $data[12];
- > $this->starttime = $data[13]; # show start-time
- > $this->endtime = $data[14]; # show end-time
- > $this->findid = $data[15];
- > $this->hostname = $data[16];
- > $this->sourceid = $data[17];
- > $this->cardid = $data[18];
- > $this->inputid = $data[19];
- > $this->recpriority = $data[20];
- > $this->recstatus = $data[21];
- > $this->recordid = $data[22];
- >
- > $this->rectype = $data[23];
- > $this->dupin = $data[24];
- > $this->dupmethod = $data[25];
- > $this->recstartts = $data[26]; # ACTUAL start time (also maps to recorded.starttime)
- > $this->recendts = $data[27]; # ACTUAL end time
- > $this->progflags = $data[28];
- > $this->recgroup = $data[29];
- > $this->outputfilters = $data[30];
- > $this->seriesid = $data[31];
- > $this->programid = $data[32];
- > $this->inetref = $data[33];
- >
- > $this->lastmodified = $data[34];
- > $this->stars = $data[35];
- > $this->airdate = $data[36];
- > $this->playgroup = $data[37];
- > $this->recpriority2 = $data[38];
- > $this->parentid = $data[39];
- > $this->storagegroup = $data[40];
- > $this->audioproperties = $data[41];
- > $this->videoproperties = $data[42];
- > $this->subtitletype = $data[43];
- > $this->year = $data[44];
- > $this->partnumber = $data[45];
- > $this->parttotal = $data[46];
- 305,315d261
- < if (!isset($this->syndicatedepisodenumber)) {
- < // Get some data from SQL that the backend doesn't provide
- < $query = 'SELECT partnumber, parttotal, syndicatedepisodenumber FROM program'
- < .' WHERE chanid='.escape($this->chanid)
- < .' AND starttime=FROM_UNIXTIME('.escape($this->starttime).')';
- < $result = mysql_query($query)
- < or trigger_error('SQL Error: '.mysql_error(), FATAL);
- < list($this->partnumber, $this->parttotal, $this->syndicatedepisodenumber) = mysql_fetch_row($result);
- < mysql_free_result($result);
- < }
- <
- 400,441c346,390
- < $this->category , // 05 category
- < $this->chanid , // 06 chanid
- < $this->channum , // 07 chanstr
- < $this->callsign , // 08 chansign
- < $this->channame , // 09 channame
- < $this->filename , // 10 pathname
- < $this->filesize , // 11 filesize
- <
- < $this->starttime , // 12 startts
- < $this->endtime , // 13 endts
- < $this->findid , // 14 findid
- < $this->hostname , // 15 hostname
- < $this->sourceid , // 16 sourceid
- < $this->cardid , // 17 cardid
- < $this->inputid , // 18 inputid
- < $this->recpriority , // 19 recpriority
- < $this->recstatus , // 20 recstatus
- < $this->recordid , // 21 recordid
- <
- < $this->rectype , // 22 rectype
- < $this->dupin , // 23 dupin
- < $this->dupmethod , // 24 dupmethod
- < $this->recstartts , // 25 recstartts
- < $this->recendts , // 26 recendts
- < $this->progflags , // 27 programflags
- < $this->recgroup , // 28 recgroup
- < $this->outputfilters , // 29 chanOutputFilters
- < $this->seriesid , // 30 seriesid
- < $this->programid , // 31 programid
- < $this->inetref , // 32 inetref
- <
- < $this->lastmodified , // 33 lastmodified
- < $this->stars , // 34 stars
- < $this->airdate , // 35 originalAirDate
- < $this->playgroup , // 36 playgroup
- < $this->recpriority2 , // 37 recpriority2
- < $this->parentid , // 38 parentid
- < $this->storagegroup , // 39 storagegroup
- < $this->audioproperties, // 40 audioprop
- < $this->videoproperties, // 41 videoprop
- < $this->subtitletype, // 42 subtitletype
- < $this->year, // 43 year
- ---
- > $this->syndicatedepisodenumber, // 05 syndicatedepisode
- > $this->category , // 06 category
- > $this->chanid , // 07 chanid
- > $this->channum , // 08 chanstr
- > $this->callsign , // 09 chansign
- > $this->channame , // 10 channame
- > $this->filename , // 11 pathname
- > $this->filesize , // 12 filesize
- >
- > $this->starttime , // 13 startts
- > $this->endtime , // 14 endts
- > $this->findid , // 15 findid
- > $this->hostname , // 16 hostname
- > $this->sourceid , // 17 sourceid
- > $this->cardid , // 18 cardid
- > $this->inputid , // 19 inputid
- > $this->recpriority , // 20 recpriority
- > $this->recstatus , // 21 recstatus
- > $this->recordid , // 22 recordid
- >
- > $this->rectype , // 23 rectype
- > $this->dupin , // 24 dupin
- > $this->dupmethod , // 25 dupmethod
- > $this->recstartts , // 26 recstartts
- > $this->recendts , // 27 recendts
- > $this->progflags , // 28 programflags
- > $this->recgroup , // 29 recgroup
- > $this->outputfilters , // 30 chanOutputFilters
- > $this->seriesid , // 31 seriesid
- > $this->programid , // 32 programid
- > $this->inetref , // 33 inetref
- >
- > $this->lastmodified , // 34 lastmodified
- > $this->stars , // 35 stars
- > $this->airdate , // 36 originalAirDate
- > $this->playgroup , // 37 playgroup
- > $this->recpriority2 , // 38 recpriority2
- > $this->parentid , // 39 parentid
- > $this->storagegroup , // 40 storagegroup
- > $this->audioproperties, // 41 audioprop
- > $this->videoproperties, // 42 videoprop
- > $this->subtitletype , // 43 subtitletype
- > $this->year , // 44 year
- > $this->partnumber , // 45 partnumber
- > $this->parttotal , // 46 parttotal
- 548d496
- < case rectype_channel: $str .= t('rectype-long: channel', $_SESSION["prefer_channum"] ? $this->channel->channum : $this->channel->callsign); break;
- 554,555d501
- < case rectype_finddaily: $str .= t('rectype-long: finddaily'); break;
- < case rectype_findweekly: $str .= t('rectype-long: findweekly'); break;
- 635c581
- < $sh = $db->query('SELECT *
- ---
- > $sh = $db->query("SELECT *
- 637c583,587
- < WHERE title=? AND subtitle=? AND description=? AND future = 0',
- ---
- > WHERE title = ? AND
- > ((programid = '' AND subtitle = ?
- > AND description = ?) OR
- > (programid <> '' AND programid = ?) OR
- > (findid <> 0 AND findid = ?))",
- 640c590,592
- < $this->description);
- ---
- > $this->description,
- > $this->programid,
- > $this->findid);
- 154c154
- < if ($program[20] == 6)
- ---
- > if ($program[21] == 6)
- 157c157
- < self::$scheduledRecordings[$program[8]][$program[12]][] =& new Program($program);
- ---
- > self::$scheduledRecordings[$program[9]][$program[13]][] =& new Program($program);
- 440,443d439
- < case rectype_channel:
- < $channel =& Channel::find($this->chanid);
- < $str .= t('rectype-long: channel', $_SESSION["prefer_channum"] ? $channel->channum : $channel->callsign);
- < break;
- 449,450d444
- < case rectype_finddaily: $str .= t('rectype-long: finddaily'); break;
- < case rectype_findweekly: $str .= t('rectype-long: findweekly'); break;
- 47,48c47,48
- < case rectype_finddaily:
- < case rectype_findweekly:
- ---
- > case rectype_daily:
- > case rectype_weekly:
- 18d17
- < define('rectype_channel', 3);
- 24,25d22
- < define('rectype_finddaily', 9);
- < define('rectype_findweekly', 10);
- 47d43
- < rectype_channel => t('rectype: channel'),
- 53,54d48
- < rectype_finddaily => t('rectype: finddaily'),
- < rectype_findweekly => t('rectype: findweekly'),
- 175d174
- < case rectype_channel: $type = rectype_channel; break;
- 179,180d177
- < case rectype_finddaily: $type = rectype_finddaily; break;
- < case rectype_findweekly: $type = rectype_findweekly; break;
- 300c300
- < file.subtitle = '<?php echo str_replace("\n", '', nl2br(addslashes($show->subtitle))) ?>';
- ---
- > file.subtitle = '<?php echo addslashes($show->subtitle) ?>';
- 138,143c138,143
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_finddaily ?>" id="rectype_finddaily"<?php
- < if ($schedule->type == rectype_finddaily) echo ' CHECKED' ?>>
- < <label for="rectype_finddaily"><?php echo t('rectype-long: finddaily') ?></label></li>
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_findweekly ?>" id="rectype_findweekly"<?php
- < if($schedule->type == rectype_findweekly) echo ' CHECKED' ?>>
- < <label for="rectype_findweekly"><?php echo t('rectype-long: findweekly') ?></label></li>
- ---
- > <li><input type="radio" class="radio" name="record" value="<?php echo rectype_daily ?>" id="rectype_daily"<?php
- > if ($schedule->type == rectype_daily) echo ' CHECKED' ?>>
- > <label for="rectype_daily"><?php echo t('rectype-long: finddaily') ?></label></li>
- > <li><input type="radio" class="radio" name="record" value="<?php echo rectype_weekly ?>" id="rectype_weekly"<?php
- > if($schedule->type == rectype_weekly) echo ' CHECKED' ?>>
- > <label for="rectype_weekly"><?php echo t('rectype-long: findweekly') ?></label></li>
- 582,587d581
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_daily ?>" id="record_daily"<?php
- < echo $schedule->type == rectype_daily ? ' CHECKED' : '' ?> />
- < <label for="record_daily"><?php echo t('rectype-long: daily') ?></label></li>
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_weekly ?>" id="record_weekly"<?php
- < echo $schedule->type == rectype_weekly ? ' CHECKED' : '' ?> />
- < <label for="record_weekly"><?php echo t('rectype-long: weekly') ?></label></li>
- 591,599d584
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_finddaily ?>" id="record_finddaily"<?php
- < echo $schedule->type == rectype_finddaily ? ' CHECKED' : '' ?> />
- < <label for="record_finddaily"><?php echo t('rectype-long: finddaily') ?></label></li>
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_findweekly ?>" id="record_findweekly"<?php
- < echo $schedule->type == rectype_findweekly ? ' CHECKED' : '' ?> />
- < <label for="record_findweekly"><?php echo t('rectype-long: findweekly') ?></label></li>
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_channel ?>" id="record_channel"<?php
- < echo $schedule->type == rectype_channel ? ' CHECKED' : '' ?> />
- < <label for="record_channel"><?php echo t('rectype-long: channel', $channel->callsign) ?></label></li>
- 76,79d75
- < <input type="radio" class="radio" name="record" value="<?php echo rectype_daily ?>" id="record_daily"<?php echo $schedule->type == rectype_daily ? ' CHECKED' : '' ?>></input>
- < <a>Record every day</a> at this time<br />
- < <input type="radio" class="radio" name="record" value="<?php echo rectype_weekly ?>" id="record_weekly"<?php echo $schedule->type == rectype_weekly ? ' CHECKED' : '' ?>></input>
- < <a>Record every week</a> at this time<br />
- 82,87d77
- < <input type="radio" class="radio" name="record" value="<?php echo rectype_finddaily ?>" id="record_finddaily"<?php echo $schedule->type == rectype_finddaily ? ' CHECKED' : '' ?>></input>
- < <a>Find one episode every day</a><br />
- < <input type="radio" class="radio" name="record" value="<?php echo rectype_findweekly ?>" id="record_findweekly"<?php echo $schedule->type == rectype_findweekly ? ' CHECKED' : '' ?>></input>
- < <a>Find one episode every week</a><br />
- < <input type="radio" class="radio" name="record" value="<?php echo rectype_channel ?>" id="record_channel"<?php echo $schedule->type == rectype_channel ? ' CHECKED' : '' ?>></input>
- < <a>Always record on this channel</a><br />
- 66,71c66,71
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_finddaily ?>" id="rectype_finddaily"<?php
- < if ($schedule->type == rectype_finddaily) echo ' CHECKED' ?> />
- < <label for="rectype_finddaily"><?php echo t('rectype-long: finddaily') ?></label></li>
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_findweekly ?>" id="rectype_findweekly"<?php
- < if($schedule->type == rectype_findweekly) echo ' CHECKED' ?> />
- < <label for="rectype_findweekly"><?php echo t('rectype-long: findweekly') ?></label></li>
- ---
- > <li><input type="radio" class="radio" name="record" value="<?php echo rectype_daily ?>" id="rectype_daily"<?php
- > if ($schedule->type == rectype_daily) echo ' CHECKED' ?> />
- > <label for="rectype_daily"><?php echo t('rectype-long: finddaily') ?></label></li>
- > <li><input type="radio" class="radio" name="record" value="<?php echo rectype_weekly ?>" id="rectype_weekly"<?php
- > if($schedule->type == rectype_weekly) echo ' CHECKED' ?> />
- > <label for="rectype_weekly"><?php echo t('rectype-long: findweekly') ?></label></li>
- 304,309d303
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_daily ?>" id="record_daily"<?php
- < echo $schedule->type == rectype_daily ? ' CHECKED' : '' ?> />
- < <label for="record_daily"><?php echo t('rectype-long: daily') ?></label></li>
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_weekly ?>" id="record_weekly"<?php
- < echo $schedule->type == rectype_weekly ? ' CHECKED' : '' ?> />
- < <label for="record_weekly"><?php echo t('rectype-long: weekly') ?></label></li>
- 313,321d306
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_finddaily ?>" id="record_finddaily"<?php
- < echo $schedule->type == rectype_finddaily ? ' CHECKED' : '' ?> />
- < <label for="record_finddaily"><?php echo t('rectype-long: finddaily') ?></label></li>
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_findweekly ?>" id="record_findweekly"<?php
- < echo $schedule->type == rectype_findweekly ? ' CHECKED' : '' ?> />
- < <label for="record_findweekly"><?php echo t('rectype-long: findweekly') ?></label></li>
- < <li><input type="radio" class="radio" name="record" value="<?php echo rectype_channel ?>" id="record_channel"<?php
- < echo $schedule->type == rectype_channel ? ' CHECKED' : '' ?> />
- < <label for="record_channel"><?php echo t('rectype-long: channel', $channel->callsign) ?></label></li>
Advertisement
Add Comment
Please, Sign In to add comment