Skip to content
Permalink
Browse files

Add widgets to edit season, episode, and inetref to MythWeb.

Also add a line to show this information on existing recordings.  Patch by Doug Haber, fixes #9923.
  • Loading branch information
Robert McNamara
Robert McNamara committed Jul 17, 2011
1 parent 8483799 commit b4e6d255e99e765ed26a6d7f23cc4354edd1a54b
@@ -424,6 +424,7 @@
"IMDBTYPE"
"Inactive"
Inactiu
"inetref"
"info: activate recording"
"info: default recording"
"info: dont record"
@@ -449,6 +450,7 @@
"info:jumppoints"
"info:never record"
"Insert"
"Internet Reference #"
"Jump"
Saltar
"Jump Points"
@@ -532,6 +532,7 @@
"IMDBTYPE"
"Inactive"
Neaktivní
"inetref"
"info: activate recording"
"info: default recording"
"info: dont record"
@@ -557,6 +558,7 @@
"info:never record"
"Insert"
Vložit
"Internet Reference #"
"Jump"
Skočit
"Jump Points"
@@ -583,6 +583,7 @@
"IMDBTYPE"
"Inactive"
Inaktiv
"inetref"
"info: activate recording"
Tving denne specifikke visning til at optage.
"info: default recording"
@@ -614,6 +615,7 @@
Optag aldrig denne udsendelse.
"Insert"
Insert
"Internet Reference #"
"Jump"
"Jump Points"
@@ -413,6 +413,7 @@
"IMDBTYPE"
"Inactive"
Niet actief
"inetref"
"info: activate recording"
"info: default recording"
"info: dont record"
@@ -438,6 +439,7 @@
"info:jumppoints"
"info:never record"
"Insert"
"Internet Reference #"
"Jump"
Ga
"Jump Points"
@@ -312,6 +312,7 @@
"IMDBTYPE"
Imdb
"Inactive"
"inetref"
"info: activate recording"
Force this specific showing to record.
"info: default recording"
@@ -348,6 +349,7 @@
"info:never record"
Falsify a previous recording of this show so that it won't record.
"Insert"
"Internet Reference #"
"Jump"
"Jump Points"
"Jump to"
@@ -312,6 +312,7 @@
"IMDBTYPE"
Imdb
"Inactive"
"inetref"
"info: activate recording"
Force this specific showing to record.
"info: default recording"
@@ -348,6 +349,7 @@
"info:never record"
Falsify a previous recording of this show so that it won't record.
"Insert"
"Internet Reference #"
"Jump"
"Jump Points"
"Jump to"
@@ -314,6 +314,7 @@
"IMDB"
"IMDBTYPE"
"Inactive"
"inetref"
"info: activate recording"
Force this specific showing to record.
"info: default recording"
@@ -346,6 +347,7 @@
"info:never record"
Falsify a previous recording of this show so that it won't record.
"Insert"
"Internet Reference #"
"Jump"
"Jump Points"
"Jump to"
@@ -582,6 +582,7 @@
IMBDTYPE
"Inactive"
Ei aktiivinen
"inetref"
"info: activate recording"
Pakota tämän ohjelman tallennus
"info: default recording"
@@ -620,6 +621,7 @@
Luo väärennös vanhemmasta tallennuksesta, jotta tätä esitystä ei tallenneta.
"Insert"
Syötä
"Internet Reference #"
"Jump"
Hyppy
"Jump Points"
@@ -587,6 +587,7 @@
Imdb
"Inactive"
Inactif
"inetref"
"info: activate recording"
Forcer l'enregistrement de cette diffusion.
"info: default recording"
@@ -625,6 +626,7 @@
Simule un enregistrement précédent de cette émission pour qu'elle ne soit pas enregistrée.
"Insert"
Inser
"Internet Reference #"
"Jump"
Aller
"Jump Points"
@@ -587,6 +587,7 @@
Imdb
"Inactive"
Inactif
"inetref"
"info: activate recording"
Forcer l'enregistrement de cette diffusion.
"info: default recording"
@@ -625,6 +626,7 @@
Simule un enregistrement précédent de cette émission pour qu'elle ne soit pas enregistrée.
"Insert"
Inser
"Internet Reference #"
"Jump"
Aller
"Jump Points"
@@ -582,6 +582,7 @@
IMDBTYPE
"Inactive"
Inaktiv
"inetref"
"info: activate recording"
"info: default recording"
"info: dont record"
@@ -609,6 +610,7 @@
"info:never record"
"Insert"
Einfügen
"Internet Reference #"
"Jump"
Springen
"Jump Points"
@@ -558,6 +558,7 @@
Imdb
"Inactive"
Inkaktív
"inetref"
"info: activate recording"
Ezen műsor rögzítésének kényszerítése.
"info: default recording"
@@ -592,6 +593,7 @@
Meghamisítja ezen műsor korábbi felvételeit, igy nem lesz rögzítve.
"Insert"
Beszúrás
"Internet Reference #"
"Jump"
Ugrás
"Jump Points"
@@ -409,6 +409,7 @@
"IMDBTYPE"
"Inactive"
無効
"inetref"
"info: activate recording"
"info: default recording"
"info: dont record"
@@ -434,6 +435,7 @@
"info:jumppoints"
"info:never record"
"Insert"
"Internet Reference #"
"Jump"
移動
"Jump Points"
@@ -584,6 +584,7 @@
IMDB-type
"Inactive"
Inaktiv
"inetref"
"info: activate recording"
Tving opptak av denne spesifikke sendingen.
"info: default recording"
@@ -615,6 +616,7 @@
Ta aldri opp denne sendingen.
"Insert"
Legg til
"Internet Reference #"
"Jump"
"Jump Points"
@@ -383,6 +383,7 @@
"IMDBTYPE"
"Inactive"
Bezczynny
"inetref"
"info: activate recording"
"info: default recording"
"info: dont record"
@@ -393,6 +394,7 @@
"info:jumppoints"
"info:never record"
"Insert"
"Internet Reference #"
"Jump"
Skocz
"Jump Points"
@@ -530,6 +530,7 @@
IMDB tip
"Inactive"
Neaktiven
"inetref"
"info: activate recording"
Vsili snemanje te oddaje.
"info: default recording"
@@ -563,6 +564,7 @@
Prikaži prejšnje posnetke te oddaje tako, da se ne bo več posnela.
"Insert"
Vstavi
"Internet Reference #"
"Jump"
Skoči
"Jump Points"
@@ -493,6 +493,7 @@
"IMDBTYPE"
"Inactive"
Inactivo
"inetref"
"info: activate recording"
"info: default recording"
"info: dont record"
@@ -518,6 +519,7 @@
"info:jumppoints"
"info:never record"
"Insert"
"Internet Reference #"
"Jump"
Saltar
"Jump Points"
@@ -585,6 +585,7 @@
IMDBTYP
"Inactive"
Inaktiv
"inetref"
"info: activate recording"
aktivera inspelning
"info: default recording"
@@ -624,6 +625,7 @@
Spela aldrig in
"Insert"
Sätta in
"Internet Reference #"
"Jump"
"Jump Points"
@@ -236,10 +236,10 @@ public function save($new_type) {
findday,findtime,findid,autotranscode,parentid,transcoder,
autouserjob1,autouserjob2,autouserjob3,autouserjob4,autometadata,
playgroup,storagegroup,prefinput,
next_record,last_record,last_delete)
next_record,last_record,last_delete,inetref,season,episode)
VALUES (?,?,?,
FROM_UNIXTIME(?),FROM_UNIXTIME(?),FROM_UNIXTIME(?),FROM_UNIXTIME(?),
?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)',
?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)',
_or($this->recordid, 0, true),
_or($this->type, 0, true),
$this->chanid,
@@ -283,7 +283,10 @@ public function save($new_type) {
_or($this->prefinput, 0, true),
_or($this->next_record, '00:00:00' ),
_or($this->last_record, '00:00:00' ),
_or($this->last_delete, '00:00:00' )
_or($this->last_delete, '00:00:00' ),
_or($this->inetref, '' ),
_or($this->season, 0 ),
_or($this->episode, 0 )
);
// Get the id that was returned
$recordid = $sh->insert_id();
@@ -231,6 +231,10 @@
$schedule->autotranscode = $_POST['autotranscode'] ? 1 : 0;
$schedule->transcoder = $_POST['transcoder'];
$schedule->prefinput = $_POST['prefinput'];
$schedule->inetref = intval($_POST['inetref']);
$schedule->season = intval($_POST['season']);
$schedule->episode = intval($_POST['episode']);
// Keep track of the parent recording for overrides
if ($_POST['record'] == rectype_override) {
$schedule->parentid = $schedule->recordid;
@@ -132,6 +132,12 @@ function toggle_advanced(show) {
?></select></dd>
<dt><?php echo t('Preferred Input') ?>:</dt>
<dd><?php input_select($schedule->prefinput, 'prefinput') ?></dd>
<dt><?php echo t('Internet Reference #') ?>:</dt>
<dd><input type="text" name="inetref" value="<?php echo html_entities($schedule->inetref) ?>"></dd>
<dt><?php echo t('Season') ?>:</dt>
<dd><input type="text" class="quantity" name="season" value="<?php echo html_entities($schedule->season) ?>"></dd>
<dt><?php echo t('Episode') ?>:</dt>
<dd><input type="text" class="quantity" name="episode" value="<?php echo html_entities($schedule->episode) ?>"></dd>
<dt><label for="autometadata"><?php echo t('Look up Metadata') ?>:</label></dt>
<dd><input type="checkbox" class="radio" id="autometadata" name="autometadata"<?php if ($schedule->autometadata) echo ' CHECKED' ?> value="1"></dd>
<dt><label for="autocommflag"><?php echo t('Auto-flag commercials') ?>:</label></dt>
@@ -209,6 +209,24 @@ function watchShow(host, chanid, starttime) {
?><tr class="x-extras">
<th><?php echo t('Episode Number') ?>:</th>
<td><?php echo $program->syndicatedepisodenumber ?></td>
</tr><?php
}
if (strlen($program->inetref) > 0) {
?><tr class="x-extras">
<th><?php echo t('inetref') ?>:</th>
<td><?php echo $program->inetref ?></td>
</tr><?php
}
if ($program->season > 0) {
?><tr class="x-extras">
<th><?php echo t('Season') ?>:</th>
<td><?php echo $program->season ?></td>
</tr><?php
}
if ($program->episode > 0) {
?><tr class="x-extras">
<th><?php echo t('Episode') ?>:</th>
<td><?php echo $program->episode ?></td>
</tr><?php
}
if (strlen($program->airdate)) {

0 comments on commit b4e6d25

Please sign in to comment.
You can’t perform that action at this time.