1 | Index: mythweb/includes/recording_schedules.php |
---|
2 | =================================================================== |
---|
3 | --- mythweb/includes/recording_schedules.php (revision 9619) |
---|
4 | +++ mythweb/includes/recording_schedules.php (working copy) |
---|
5 | @@ -143,6 +143,7 @@ |
---|
6 | var $findid; |
---|
7 | var $transcoder; |
---|
8 | var $parentid; |
---|
9 | + var $playgroup; |
---|
10 | |
---|
11 | var $texttype; |
---|
12 | var $channel; |
---|
13 | @@ -251,7 +252,7 @@ |
---|
14 | // Update the type, in case it changed |
---|
15 | $this->type = $new_type; |
---|
16 | // Update the record |
---|
17 | - $result = mysql_query('REPLACE INTO record (recordid,type,chanid,starttime,startdate,endtime,enddate,search,title,subtitle,description,profile,recpriority,category,maxnewest,inactive,maxepisodes,autoexpire,startoffset,endoffset,recgroup,dupmethod,dupin,station,seriesid,programid,autocommflag,findday,findtime,findid,autotranscode,transcoder,parentid,tsdefault,autouserjob1,autouserjob2,autouserjob3,autouserjob4) values (' |
---|
18 | + $result = mysql_query('REPLACE INTO record (recordid,type,chanid,starttime,startdate,endtime,enddate,search,title,subtitle,description,profile,recpriority,category,maxnewest,inactive,maxepisodes,autoexpire,startoffset,endoffset,recgroup,dupmethod,dupin,station,seriesid,programid,autocommflag,findday,findtime,findid,autotranscode,transcoder,parentid,tsdefault,autouserjob1,autouserjob2,autouserjob3,autouserjob4,playgroup) values (' |
---|
19 | .escape($this->recordid, true) .',' |
---|
20 | .escape($this->type) .',' |
---|
21 | .escape($this->chanid) .',' |
---|
22 | @@ -289,7 +290,8 @@ |
---|
23 | .escape($this->autouserjob1) .',' |
---|
24 | .escape($this->autouserjob2) .',' |
---|
25 | .escape($this->autouserjob3) .',' |
---|
26 | - .escape($this->autouserjob4) .')') |
---|
27 | + .escape($this->autouserjob4) .',' |
---|
28 | + .escape($this->playgroup) .')') |
---|
29 | or trigger_error('SQL Error: '.mysql_error(), FATAL); |
---|
30 | // Get the id that was returned |
---|
31 | $recordid = mysql_insert_id(); |
---|
32 | @@ -512,4 +514,28 @@ |
---|
33 | echo '</select>'; |
---|
34 | } |
---|
35 | |
---|
36 | +/** |
---|
37 | + * prints a <select> of the various playback groups available |
---|
38 | +/**/ |
---|
39 | + function playgroup_select($this_playgroup, $name = 'playgroup') |
---|
40 | + { |
---|
41 | + static $playgroups = array(); |
---|
42 | + if(!sizeof($playgroups)) |
---|
43 | + { |
---|
44 | + $res = mysql_query('SELECT name FROM playgroup'); |
---|
45 | + while($row = mysql_fetch_row($res)) |
---|
46 | + $playgroups[$row[0]] = $row[0]; |
---|
47 | + mysql_free_result($res); |
---|
48 | + } |
---|
49 | |
---|
50 | + echo "<select name=\"$name\">\n"; |
---|
51 | + foreach($playgroups as $playgroup) |
---|
52 | + { |
---|
53 | + echo "\t<option value=\"" . html_entities($playgroup) . '"'; |
---|
54 | + if($this_playgroup == $playgroup) |
---|
55 | + echo ' SELECTED'; |
---|
56 | + echo '>' . html_entities($playgroup) . "</option>\n"; |
---|
57 | + } |
---|
58 | + echo "</select>\n"; |
---|
59 | + return; |
---|
60 | + } |
---|
61 | Index: mythweb/modules/_shared/lang/English_GB.lang |
---|
62 | =================================================================== |
---|
63 | --- mythweb/modules/_shared/lang/English_GB.lang (revision 9619) |
---|
64 | +++ mythweb/modules/_shared/lang/English_GB.lang (working copy) |
---|
65 | @@ -244,6 +244,7 @@ |
---|
66 | "Past Year" |
---|
67 | "People" |
---|
68 | "People Search" |
---|
69 | +"Playback Group" |
---|
70 | "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality." |
---|
71 | "Please search for something." |
---|
72 | "plot" |
---|
73 | Index: mythweb/modules/_shared/lang/French.lang |
---|
74 | =================================================================== |
---|
75 | --- mythweb/modules/_shared/lang/French.lang (revision 9619) |
---|
76 | +++ mythweb/modules/_shared/lang/French.lang (working copy) |
---|
77 | @@ -347,6 +347,7 @@ |
---|
78 | "Past Year" |
---|
79 | "People" |
---|
80 | "People Search" |
---|
81 | +"Playback Group" |
---|
82 | "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality." |
---|
83 | Nous vous prévenons que modifier les touches sans savoir ce que vous faîtes peut sérieusement endomager le fonctionnement de MythTV |
---|
84 | "Please search for something." |
---|
85 | Index: mythweb/modules/_shared/lang/Spanish.lang |
---|
86 | =================================================================== |
---|
87 | --- mythweb/modules/_shared/lang/Spanish.lang (revision 9619) |
---|
88 | +++ mythweb/modules/_shared/lang/Spanish.lang (working copy) |
---|
89 | @@ -427,6 +427,7 @@ |
---|
90 | Gente |
---|
91 | "People Search" |
---|
92 | Búsqueda gente |
---|
93 | +"Playback Group" |
---|
94 | "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality." |
---|
95 | Tenga cuidado al alterar esta tabla sin saber lo que hace, puede romper el funcionamiento de MythTV |
---|
96 | "Please search for something." |
---|
97 | Index: mythweb/modules/_shared/lang/Danish.lang |
---|
98 | =================================================================== |
---|
99 | --- mythweb/modules/_shared/lang/Danish.lang (revision 9619) |
---|
100 | +++ mythweb/modules/_shared/lang/Danish.lang (working copy) |
---|
101 | @@ -374,6 +374,7 @@ |
---|
102 | "Past Year" |
---|
103 | "People" |
---|
104 | "People Search" |
---|
105 | +"Playback Group" |
---|
106 | "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality." |
---|
107 | BemÊrk at ved at Êndre i denne tabel uden at vide hvad du laver, kan du ÞdelÊgge mythtvs funktioner. |
---|
108 | "Please search for something." |
---|
109 | Index: mythweb/modules/_shared/lang/Swedish.lang |
---|
110 | =================================================================== |
---|
111 | --- mythweb/modules/_shared/lang/Swedish.lang (revision 9619) |
---|
112 | +++ mythweb/modules/_shared/lang/Swedish.lang (working copy) |
---|
113 | @@ -431,6 +431,7 @@ |
---|
114 | Person |
---|
115 | "People Search" |
---|
116 | Sök person |
---|
117 | +"Playback Group" |
---|
118 | "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality." |
---|
119 | OBS! Genom att Àndra dessa instÀllningar utan att veta vad du gör kan du allvarligt störa MythTVs funktionalitet. |
---|
120 | "Please search for something." |
---|
121 | Index: mythweb/modules/_shared/lang/Dutch.lang |
---|
122 | =================================================================== |
---|
123 | --- mythweb/modules/_shared/lang/Dutch.lang (revision 9619) |
---|
124 | +++ mythweb/modules/_shared/lang/Dutch.lang (working copy) |
---|
125 | @@ -430,6 +430,7 @@ |
---|
126 | Personen |
---|
127 | "People Search" |
---|
128 | Personen zoeken |
---|
129 | +"Playback Group" |
---|
130 | "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality." |
---|
131 | Waarschuwing! Als u niet weet wat u doet, kan het veranderen van deze tabel de werking van MythTV ernstig verstoren. |
---|
132 | "Please search for something." |
---|
133 | Index: mythweb/modules/_shared/lang/German.lang |
---|
134 | =================================================================== |
---|
135 | --- mythweb/modules/_shared/lang/German.lang (revision 9619) |
---|
136 | +++ mythweb/modules/_shared/lang/German.lang (working copy) |
---|
137 | @@ -427,6 +427,7 @@ |
---|
138 | Leute |
---|
139 | "People Search" |
---|
140 | Suche nach Darsteller |
---|
141 | +"Playback Group" |
---|
142 | "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality." |
---|
143 | Achtung! Falls diese Tabelle ohne das nötige Hintergrundwissen verÀndert wird, könnte MythTVs FunktionalitÀt nachhaltig gestört werden. |
---|
144 | "Please search for something." |
---|
145 | Index: mythweb/modules/_shared/lang/Japanese.lang |
---|
146 | =================================================================== |
---|
147 | --- mythweb/modules/_shared/lang/Japanese.lang (revision 9619) |
---|
148 | +++ mythweb/modules/_shared/lang/Japanese.lang (working copy) |
---|
149 | @@ -399,6 +399,7 @@ |
---|
150 | ããŒãã« |
---|
151 | "People Search" |
---|
152 | ããŒãã«ãµãŒã |
---|
153 | +"Playback Group" |
---|
154 | "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality." |
---|
155 | èšå®é
ç®ã®æå³ãããããªããšãã¯å€æŽããªãã§ãã ãããMythTVãæ£åžžã«åäœããªããªããŸãã |
---|
156 | "Please search for something." |
---|
157 | Index: mythweb/modules/_shared/lang/English.lang |
---|
158 | =================================================================== |
---|
159 | --- mythweb/modules/_shared/lang/English.lang (revision 9619) |
---|
160 | +++ mythweb/modules/_shared/lang/English.lang (working copy) |
---|
161 | @@ -234,6 +234,7 @@ |
---|
162 | "Past Year" |
---|
163 | "People" |
---|
164 | "People Search" |
---|
165 | +"Playback Group" |
---|
166 | "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality." |
---|
167 | "Please search for something." |
---|
168 | "plot" |
---|
169 | Index: mythweb/modules/_shared/lang/Czech.lang |
---|
170 | =================================================================== |
---|
171 | --- mythweb/modules/_shared/lang/Czech.lang (revision 9619) |
---|
172 | +++ mythweb/modules/_shared/lang/Czech.lang (working copy) |
---|
173 | @@ -295,6 +295,7 @@ |
---|
174 | "Past Year" |
---|
175 | "People" |
---|
176 | "People Search" |
---|
177 | +"Playback Group" |
---|
178 | "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality." |
---|
179 | "Please search for something." |
---|
180 | "plot" |
---|
181 | Index: mythweb/modules/_shared/lang/Finnish.lang |
---|
182 | =================================================================== |
---|
183 | --- mythweb/modules/_shared/lang/Finnish.lang (revision 9619) |
---|
184 | +++ mythweb/modules/_shared/lang/Finnish.lang (working copy) |
---|
185 | @@ -414,6 +414,7 @@ |
---|
186 | "People" |
---|
187 | "People Search" |
---|
188 | Haku NimellÀ |
---|
189 | +"Playback Group" |
---|
190 | "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality." |
---|
191 | Varoitus: NÀiden asetusten muokkaus voi haitata MythTV:n toimintaa. |
---|
192 | "Please search for something." |
---|
193 | Index: mythweb/modules/_shared/lang/Slovenian.lang |
---|
194 | =================================================================== |
---|
195 | --- mythweb/modules/_shared/lang/Slovenian.lang (revision 9619) |
---|
196 | +++ mythweb/modules/_shared/lang/Slovenian.lang (working copy) |
---|
197 | @@ -341,6 +341,7 @@ |
---|
198 | "Past Year" |
---|
199 | "People" |
---|
200 | "People Search" |
---|
201 | +"Playback Group" |
---|
202 | "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality." |
---|
203 | "Please search for something." |
---|
204 | Prosim poiÅ¡Äite kaj |
---|
205 | Index: mythweb/modules/tv/schedules_custom.php |
---|
206 | =================================================================== |
---|
207 | --- mythweb/modules/tv/schedules_custom.php (revision 9619) |
---|
208 | +++ mythweb/modules/tv/schedules_custom.php (working copy) |
---|
209 | @@ -100,6 +100,7 @@ |
---|
210 | $schedule->findday = $_POST['findday']; |
---|
211 | $schedule->autotranscode = $_POST['autotranscode'] ? 1 : 0; |
---|
212 | $schedule->transcoder = $_POST['transcoder']; |
---|
213 | + $schedule->playgroup = $_POST['playgroup']; |
---|
214 | // Parse the findtime |
---|
215 | $schedule->findtime = trim($_POST['findtime']); |
---|
216 | if ($schedule->findtime) { |
---|
217 | Index: mythweb/modules/tv/schedules_manual.php |
---|
218 | =================================================================== |
---|
219 | --- mythweb/modules/tv/schedules_manual.php (revision 9619) |
---|
220 | +++ mythweb/modules/tv/schedules_manual.php (working copy) |
---|
221 | @@ -87,6 +87,7 @@ |
---|
222 | $schedule->findtime = date('H:m:s', $schedule->starttime); |
---|
223 | $schedule->autotranscode = $_POST['autotranscode'] ? 1 : 0; |
---|
224 | $schedule->transcoder = $_POST['transcoder']; |
---|
225 | + $schedule->playgroup = $_POST['playgroup']; |
---|
226 | // Figure out the title |
---|
227 | $channel = $Channels[$_POST['channel']]; |
---|
228 | if (strcasecmp($_POST['title'], t('Use callsign')) == 0) { |
---|
229 | Index: mythweb/modules/tv/detail.php |
---|
230 | =================================================================== |
---|
231 | --- mythweb/modules/tv/detail.php (revision 9619) |
---|
232 | +++ mythweb/modules/tv/detail.php (working copy) |
---|
233 | @@ -132,6 +132,7 @@ |
---|
234 | $schedule->endoffset = intval($_POST['endoffset']); |
---|
235 | $schedule->autotranscode = $_POST['autotranscode'] ? 1 : 0; |
---|
236 | $schedule->transcoder = $_POST['transcoder']; |
---|
237 | + $schedule->playgroup = $_POST['playgroup']; |
---|
238 | $schedule->tsdefault = $_POST['timestretch']; |
---|
239 | // Keep track of the parent recording for overrides |
---|
240 | if ($_POST['record'] == rectype_override) { |
---|
241 | Index: mythweb/modules/tv/tmpl/default/schedules_custom.php |
---|
242 | =================================================================== |
---|
243 | --- mythweb/modules/tv/tmpl/default/schedules_custom.php (revision 9619) |
---|
244 | +++ mythweb/modules/tv/tmpl/default/schedules_custom.php (working copy) |
---|
245 | @@ -160,6 +160,8 @@ |
---|
246 | echo ">$i</option>"; |
---|
247 | } |
---|
248 | ?></select></dd> |
---|
249 | + <dt><?php echo t('Playback Group') ?>:</dt> |
---|
250 | + <dd><?php playgroup_select($schedule->playgroup) ?></dd> |
---|
251 | <dt><?php echo t('Check for duplicates in') ?>:</dt> |
---|
252 | <dd><select name="dupin"><?php |
---|
253 | echo '<option value="1"'; |
---|
254 | Index: mythweb/modules/tv/tmpl/default/schedules_manual.php |
---|
255 | =================================================================== |
---|
256 | --- mythweb/modules/tv/tmpl/default/schedules_manual.php (revision 9619) |
---|
257 | +++ mythweb/modules/tv/tmpl/default/schedules_manual.php (working copy) |
---|
258 | @@ -113,6 +113,8 @@ |
---|
259 | echo ">$i</option>"; |
---|
260 | } |
---|
261 | ?></select></dd> |
---|
262 | + <dt><?php echo t('Playback Group') ?>:</dt> |
---|
263 | + <dd><?php playgroup_select($schedule->playgroup) ?></dd> |
---|
264 | <dt><?php echo t('Check for duplicates in') ?>:</dt> |
---|
265 | <dd><select name="dupin"><?php |
---|
266 | echo '<option value="1"'; |
---|
267 | Index: mythweb/modules/tv/tmpl/default/detail.php |
---|
268 | =================================================================== |
---|
269 | --- mythweb/modules/tv/tmpl/default/detail.php (revision 9619) |
---|
270 | +++ mythweb/modules/tv/tmpl/default/detail.php (working copy) |
---|
271 | @@ -371,6 +371,8 @@ |
---|
272 | echo ">$i</option>"; |
---|
273 | } |
---|
274 | ?></select></dd> |
---|
275 | + <dt><?php echo t('Playback Group') ?>:</dt> |
---|
276 | + <dd><?php playgroup_select($schedule->playgroup) ?></dd> |
---|
277 | <dt><?php echo t('Time Stretch Default') ?>:</dt> |
---|
278 | <dd> |
---|
279 | <select name="timestretch"> |
---|