Ticket #9923: inet.diff
File inet.diff, 4.9 KB (added by , 13 years ago) |
---|
-
modules/tv/classes/Schedule.php
diff --git a/modules/tv/classes/Schedule.php b/modules/tv/classes/Schedule.php index 7e6abca..7129da5 100644
a b class Schedule extends MythBase { 236 236 findday,findtime,findid,autotranscode,parentid,transcoder, 237 237 autouserjob1,autouserjob2,autouserjob3,autouserjob4,autometadata, 238 238 playgroup,storagegroup,prefinput, 239 next_record,last_record,last_delete )239 next_record,last_record,last_delete,inetref,season,episode) 240 240 VALUES (?,?,?, 241 241 FROM_UNIXTIME(?),FROM_UNIXTIME(?),FROM_UNIXTIME(?),FROM_UNIXTIME(?), 242 ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? )',242 ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)', 243 243 _or($this->recordid, 0, true), 244 244 _or($this->type, 0, true), 245 245 $this->chanid, … … class Schedule extends MythBase { 283 283 _or($this->prefinput, 0, true), 284 284 _or($this->next_record, '00:00:00' ), 285 285 _or($this->last_record, '00:00:00' ), 286 _or($this->last_delete, '00:00:00' ) 286 _or($this->last_delete, '00:00:00' ), 287 _or($this->inetref, '' ), 288 _or($this->season, 0 ), 289 _or($this->episode, 0 ) 287 290 ); 288 291 // Get the id that was returned 289 292 $recordid = $sh->insert_id(); -
modules/tv/detail.php
diff --git a/modules/tv/detail.php b/modules/tv/detail.php index 38fe2b9..5706bcf 100644
a b 231 231 $schedule->autotranscode = $_POST['autotranscode'] ? 1 : 0; 232 232 $schedule->transcoder = $_POST['transcoder']; 233 233 $schedule->prefinput = $_POST['prefinput']; 234 $schedule->inetref = intval($_POST['inetref']); 235 $schedule->season = intval($_POST['season']); 236 $schedule->episode = intval($_POST['episode']); 237 234 238 // Keep track of the parent recording for overrides 235 239 if ($_POST['record'] == rectype_override) { 236 240 $schedule->parentid = $schedule->recordid; -
modules/tv/tmpl/default/_advanced_options.php
diff --git a/modules/tv/tmpl/default/_advanced_options.php b/modules/tv/tmpl/default/_advanced_options.php index 98318ad..765371e 100644
a b 160 160 <dt><?php echo t('End Late') ?>:</dt> 161 161 <dd><input type="text" class="quantity" name="endoffset" value="<?php echo html_entities($schedule->endoffset) ?>"> 162 162 <?php echo t('minutes') ?></dd> 163 <dt><?php echo t('inetref') ?>:</dt> 164 <dd><input type="text" name="inetref" value="<?php echo html_entities($schedule->inetref) ?>"></dd> 165 <dt><?php echo t('Season') ?>:</dt> 166 <dd><input type="text" class="quantity" name="season" value="<?php echo html_entities($schedule->season) ?>"></dd> 167 <dt><?php echo t('Episode') ?>:</dt> 168 <dd><input type="text" class="quantity" name="episode" value="<?php echo html_entities($schedule->episode) ?>"></dd> 163 169 </dl> -
modules/tv/tmpl/default/detail.php
diff --git a/modules/tv/tmpl/default/detail.php b/modules/tv/tmpl/default/detail.php index 8d7e3aa..8d2b6c4 100644
a b 211 208 <td><?php echo $program->syndicatedepisodenumber ?></td> 212 209 </tr><?php 213 210 } 211 if (strlen($program->inetref) > 0) { 212 ?><tr class="x-extras"> 213 <th><?php echo t('inetref') ?>:</th> 214 <td><?php echo $program->inetref ?></td> 215 </tr><?php 216 } 217 if ($program->season > 0) { 218 ?><tr class="x-extras"> 219 <th><?php echo t('Season') ?>:</th> 220 <td><?php echo $program->season ?></td> 221 </tr><?php 222 } 223 if ($program->episode > 0) { 224 ?><tr class="x-extras"> 225 <th><?php echo t('Episode') ?>:</th> 226 <td><?php echo $program->episode ?></td> 227 </tr><?php 228 } 214 229 if (strlen($program->airdate)) { 215 230 ?><tr class="x-extras"> 216 231 <th><?php echo t('Original Airdate') ?>:</th>