Ticket #1626: playback_groups.patch

File playback_groups.patch, 29.5 KB (added by derek@…, 20 years ago)

patch to allow playback group modifications via MythWeb

Line 
1Index: includes/programs.php
2===================================================================
3--- includes/programs.php (revision 9646)
4+++ includes/programs.php (working copy)
5@@ -261,6 +261,7 @@
6 var $is_movie;
7
8 var $timestretch;
9+ var $playgroup;
10
11 var $credits = array();
12
13@@ -333,7 +334,8 @@
14 $this->recpriority = $data[36];
15 $this->airdate = date('Y-m-d', $data[37]);
16 $this->hasairdate = $data[38];
17- $this->timestretch = $data[39];
18+ $this->playgroup = $data[39];
19+ $this->timestretch = ''; # Not printed by ToStringList()
20 $this->recpriority2 = $data[40];
21 // Assign the program flags
22 $this->has_commflag = ($progflags & 0x01) ? true : false; // FL_COMMFLAG = 0x01
23Index: includes/recording_schedules.php
24===================================================================
25--- includes/recording_schedules.php (revision 9646)
26+++ includes/recording_schedules.php (working copy)
27@@ -143,6 +143,7 @@
28 var $findid;
29 var $transcoder;
30 var $parentid;
31+ var $playgroup;
32
33 var $texttype;
34 var $channel;
35@@ -251,7 +252,7 @@
36 // Update the type, in case it changed
37 $this->type = $new_type;
38 // Update the record
39- $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 ('
40+ $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 ('
41 .escape($this->recordid, true) .','
42 .escape($this->type) .','
43 .escape($this->chanid) .','
44@@ -289,7 +290,8 @@
45 .escape($this->autouserjob1) .','
46 .escape($this->autouserjob2) .','
47 .escape($this->autouserjob3) .','
48- .escape($this->autouserjob4) .')')
49+ .escape($this->autouserjob4) .','
50+ .escape($this->playgroup) .')')
51 or trigger_error('SQL Error: '.mysql_error(), FATAL);
52 // Get the id that was returned
53 $recordid = mysql_insert_id();
54@@ -512,4 +514,31 @@
55 echo '</select>';
56 }
57
58+/**
59+ * prints a <select> of the various playback groups available
60+/**/
61+ function playgroup_select($this_playgroup, $name = 'playgroup', $js = '', $id = '')
62+ {
63+ static $playgroups = array();
64+ if(!sizeof($playgroups))
65+ {
66+ $res = mysql_query('SELECT name FROM playgroup');
67+ while($row = mysql_fetch_row($res))
68+ $playgroups[$row[0]] = $row[0];
69+ mysql_free_result($res);
70+ }
71
72+ echo "<select name=\"$name\"";
73+ if(strlen($js))
74+ echo " onchange=\"$js\" id=\"playgroup_$id\" name=\"playgroup_$id\"";
75+ echo ">\n";
76+ foreach($playgroups as $playgroup)
77+ {
78+ echo "\t<option value=\"" . html_entities($playgroup) . '"';
79+ if($this_playgroup == $playgroup)
80+ echo ' SELECTED';
81+ echo '>' . html_entities($playgroup) . "</option>\n";
82+ }
83+ echo "</select>\n";
84+ return;
85+ }
86Index: includes/css.php
87===================================================================
88--- includes/css.php (revision 9646)
89+++ includes/css.php (working copy)
90@@ -31,14 +31,15 @@
91 // Scan the $Categories hash for any matches
92 else {
93 global $Categories;
94- foreach ($Categories as $cat => $details) {
95- if (!$details[1])
96- continue;
97- if (preg_match('/'.$details[1].'/', $category)) {
98- $class[] = $cache[$category] = 'cat_'.$cat;
99- break;
100+ if(is_array($Categories))
101+ foreach ($Categories as $cat => $details) {
102+ if (!$details[1])
103+ continue;
104+ if (preg_match('/'.$details[1].'/', $category)) {
105+ $class[] = $cache[$category] = 'cat_'.$cat;
106+ break;
107+ }
108 }
109- }
110 }
111 // No category found?
112 if (!$cache[$category])
113Index: modules/settings/init.php
114===================================================================
115--- modules/settings/init.php (revision 9646)
116+++ modules/settings/init.php (working copy)
117@@ -23,5 +23,6 @@
118 'channels' => t('MythTV channel info'),
119 'keys' => t('MythTV key bindings'),
120 'settings' => t('MythTV settings table'),
121+ 'playgroup' => t('MythTV playback group editor')
122 ),
123 );
124Index: modules/_shared/lang/English_GB.lang
125===================================================================
126--- modules/_shared/lang/English_GB.lang (revision 9646)
127+++ modules/_shared/lang/English_GB.lang (working copy)
128@@ -106,6 +106,7 @@
129 "Duplicates"
130 "Duration"
131 "Edit"
132+"Edit existing group"
133 "Edit keybindings on"
134 "Edit MythWeb and some MythTV settings."
135 "Edit settings for"
136@@ -182,6 +183,7 @@
137 "Listing &quot;Jump to&quot;"
138 "Listing Time Key"
139 "Listings"
140+"Load Group"
141 "Logs"
142 "Low"
143 "Manual"
144@@ -202,6 +204,7 @@
145 "MythTV channel info"
146 "MythTV global defaults"
147 "MythTV key bindings"
148+"MythTV playback group editor"
149 "MythTV settings table"
150 "MythTV Status"
151 "MythVideo Artwork Dir"
152@@ -244,6 +247,8 @@
153 "Past Year"
154 "People"
155 "People Search"
156+"Playback Group"
157+"Playback Group Editor"
158 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
159 "Please search for something."
160 "plot"
161@@ -414,6 +419,8 @@
162 "Showing all programs."
163 Showing all programmes.
164 "SI Units?"
165+"Skip Ahead"
166+"Skip Back"
167 "sourceid"
168 "Special Searches"
169 "Star character"
170@@ -434,10 +441,12 @@
171 "The requested recording schedule has been deleted."
172 "Thursday"
173 "Time"
174+"Time Stretch"
175 "Time Stretch Default"
176 "Timeslot size"
177 "title"
178 "Title"
179+"Title Match"
180 "Title Search"
181 "Today"
182 "Tomorrow"
183Index: modules/_shared/lang/French.lang
184===================================================================
185--- modules/_shared/lang/French.lang (revision 9646)
186+++ modules/_shared/lang/French.lang (working copy)
187@@ -161,6 +161,7 @@
188 Doublonner
189 "Duration"
190 "Edit"
191+"Edit existing group"
192 "Edit keybindings on"
193 Editer les touches sur
194 "Edit MythWeb and some MythTV settings."
195@@ -275,6 +276,7 @@
196 Lister Touches de temps
197 "Listings"
198 Liste
199+"Load Group"
200 "Logs"
201 "Low"
202 faible
203@@ -295,6 +297,7 @@
204 "MythTV channel info"
205 "MythTV global defaults"
206 "MythTV key bindings"
207+"MythTV playback group editor"
208 "MythTV settings table"
209 "MythTV Status"
210 "MythVideo Artwork Dir"
211@@ -347,6 +350,8 @@
212 "Past Year"
213 "People"
214 "People Search"
215+"Playback Group"
216+"Playback Group Editor"
217 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
218 Nous vous pr&eacute;venons que modifier les touches sans savoir ce que vous fa&icirc;tes peut s&eacute;rieusement endomager le fonctionnement de MythTV
219 "Please search for something."
220@@ -552,6 +557,8 @@
221 "Showing all programs."
222 "SI Units?"
223 Unités métriques?
224+"Skip Ahead"
225+"Skip Back"
226 "sourceid"
227 "Special Searches"
228 "Star character"
229@@ -584,12 +591,14 @@
230 Jeudi
231 "Time"
232 Heure
233+"Time Stretch"
234 "Time Stretch Default"
235 "Timeslot size"
236 "title"
237 Titre
238 "Title"
239 Titre
240+"Title Match"
241 "Title Search"
242 "Today"
243 Aujourd&acute;hui
244Index: modules/_shared/lang/Spanish.lang
245===================================================================
246--- modules/_shared/lang/Spanish.lang (revision 9646)
247+++ modules/_shared/lang/Spanish.lang (working copy)
248@@ -198,6 +198,7 @@
249 Duración
250 "Edit"
251 Editar
252+"Edit existing group"
253 "Edit keybindings on"
254 Editar Teclas en
255 "Edit MythWeb and some MythTV settings."
256@@ -332,6 +333,7 @@
257 Hora Listado
258 "Listings"
259 Listados
260+"Load Group"
261 "Logs"
262 "Low"
263 Bajo
264@@ -360,6 +362,7 @@
265 "MythTV global defaults"
266 "MythTV key bindings"
267 Vínculos Teclas MythTV
268+"MythTV playback group editor"
269 "MythTV settings table"
270 "MythTV Status"
271 Estado MythTV
272@@ -427,6 +430,8 @@
273 Gente
274 "People Search"
275 Búsqueda gente
276+"Playback Group"
277+"Playback Group Editor"
278 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
279 Tenga cuidado al alterar esta tabla sin saber lo que hace, puede romper el funcionamiento de MythTV
280 "Please search for something."
281@@ -654,6 +659,8 @@
282 Mostrando todos los programas
283 "SI Units?"
284 ¿Unidades SI?
285+"Skip Ahead"
286+"Skip Back"
287 "sourceid"
288 id fuente
289 "Special Searches"
290@@ -692,6 +699,7 @@
291 Jueves
292 "Time"
293 Hora
294+"Time Stretch"
295 "Time Stretch Default"
296 Ajuste de tiempo por defecto
297 "Timeslot size"
298@@ -699,6 +707,7 @@
299 título
300 "Title"
301 Título
302+"Title Match"
303 "Title Search"
304 Buscar título
305 "Today"
306Index: modules/_shared/lang/Danish.lang
307===================================================================
308--- modules/_shared/lang/Danish.lang (revision 9646)
309+++ modules/_shared/lang/Danish.lang (working copy)
310@@ -179,6 +179,7 @@
311 Varighed
312 "Edit"
313 Ændre
314+"Edit existing group"
315 "Edit keybindings on"
316 Rediger tastaturgenveje for
317 "Edit MythWeb and some MythTV settings."
318@@ -295,6 +296,7 @@
319 Programoversigt tid
320 "Listings"
321 Programoversigt
322+"Load Group"
323 "Logs"
324 "Low"
325 Lav
326@@ -318,6 +320,7 @@
327 "MythTV global defaults"
328 "MythTV key bindings"
329 MythTV taste indstillinger
330+"MythTV playback group editor"
331 "MythTV settings table"
332 "MythTV Status"
333 "MythVideo Artwork Dir"
334@@ -374,6 +377,8 @@
335 "Past Year"
336 "People"
337 "People Search"
338+"Playback Group"
339+"Playback Group Editor"
340 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
341 BemÊrk at ved at Êndre i denne tabel uden at vide hvad du laver, kan du ÞdelÊgge mythtvs funktioner.
342 "Please search for something."
343@@ -589,6 +594,8 @@
344 "Showing all programs."
345 "SI Units?"
346 SI enheder?
347+"Skip Ahead"
348+"Skip Back"
349 "sourceid"
350 "Special Searches"
351 Specielle sÞgninger
352@@ -624,6 +631,7 @@
353 Torsdag
354 "Time"
355 Tidspunkt
356+"Time Stretch"
357 "Time Stretch Default"
358 Standard Afspilnings hastighed
359 "Timeslot size"
360@@ -631,6 +639,7 @@
361 titel
362 "Title"
363 Titel
364+"Title Match"
365 "Title Search"
366 "Today"
367 I dag
368Index: modules/_shared/lang/Swedish.lang
369===================================================================
370--- modules/_shared/lang/Swedish.lang (revision 9646)
371+++ modules/_shared/lang/Swedish.lang (working copy)
372@@ -200,6 +200,7 @@
373 LÀngd
374 "Edit"
375 Redigera
376+"Edit existing group"
377 "Edit keybindings on"
378 Editera knappar på
379 "Edit MythWeb and some MythTV settings."
380@@ -335,6 +336,7 @@
381 TV-tablå tid
382 "Listings"
383 TV-tablåer
384+"Load Group"
385 "Logs"
386 Logg
387 "Low"
388@@ -364,6 +366,7 @@
389 "MythTV global defaults"
390 "MythTV key bindings"
391 MythTV tangentbindningar
392+"MythTV playback group editor"
393 "MythTV settings table"
394 "MythTV Status"
395 MythTV-status
396@@ -431,6 +434,8 @@
397 Person
398 "People Search"
399 Sök person
400+"Playback Group"
401+"Playback Group Editor"
402 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
403 OBS! Genom att Àndra dessa instÀllningar utan att veta vad du gör kan du allvarligt störa MythTVs funktionalitet.
404 "Please search for something."
405@@ -658,6 +663,8 @@
406 Visar alla program.
407 "SI Units?"
408 SI-enheter?
409+"Skip Ahead"
410+"Skip Back"
411 "sourceid"
412 kÀll-id
413 "Special Searches"
414@@ -696,6 +703,7 @@
415 Torsdag
416 "Time"
417 Tid
418+"Time Stretch"
419 "Time Stretch Default"
420 Förvalt tempo
421 "Timeslot size"
422@@ -703,6 +711,7 @@
423 titel
424 "Title"
425 Titel
426+"Title Match"
427 "Title Search"
428 Sök titel
429 "Today"
430Index: modules/_shared/lang/Dutch.lang
431===================================================================
432--- modules/_shared/lang/Dutch.lang (revision 9646)
433+++ modules/_shared/lang/Dutch.lang (working copy)
434@@ -200,6 +200,7 @@
435 Lengte
436 "Edit"
437 Bewerken
438+"Edit existing group"
439 "Edit keybindings on"
440 Toetsbindingen bewerken op
441 "Edit MythWeb and some MythTV settings."
442@@ -334,6 +335,7 @@
443 Weergave Tijd Gids
444 "Listings"
445 Programmagids
446+"Load Group"
447 "Logs"
448 Logboek
449 "Low"
450@@ -363,6 +365,7 @@
451 "MythTV global defaults"
452 "MythTV key bindings"
453 MythTV toetsbindingen
454+"MythTV playback group editor"
455 "MythTV settings table"
456 "MythTV Status"
457 MythTV status
458@@ -430,6 +433,8 @@
459 Personen
460 "People Search"
461 Personen zoeken
462+"Playback Group"
463+"Playback Group Editor"
464 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
465 Waarschuwing! Als u niet weet wat u doet, kan het veranderen van deze tabel de werking van MythTV ernstig verstoren.
466 "Please search for something."
467@@ -656,6 +661,8 @@
468 Alle programma's laten zien
469 "SI Units?"
470 SI eenheden?
471+"Skip Ahead"
472+"Skip Back"
473 "sourceid"
474 bron
475 "Special Searches"
476@@ -694,6 +701,7 @@
477 Donderdag
478 "Time"
479 Tijd
480+"Time Stretch"
481 "Time Stretch Default"
482 TimeStretch Standaard
483 "Timeslot size"
484@@ -701,6 +709,7 @@
485 titel
486 "Title"
487 Titel
488+"Title Match"
489 "Title Search"
490 Titel zoeken
491 "Today"
492Index: modules/_shared/lang/German.lang
493===================================================================
494--- modules/_shared/lang/German.lang (revision 9646)
495+++ modules/_shared/lang/German.lang (working copy)
496@@ -200,6 +200,7 @@
497 Dauer
498 "Edit"
499 Bearbeiten
500+"Edit existing group"
501 "Edit keybindings on"
502 Tastaturbelegung Àndern fÌr
503 "Edit MythWeb and some MythTV settings."
504@@ -332,6 +333,7 @@
505 "Listing Time Key"
506 "Listings"
507 TV Programm
508+"Load Group"
509 "Logs"
510 Logs
511 "Low"
512@@ -361,6 +363,7 @@
513 "MythTV global defaults"
514 "MythTV key bindings"
515 MythTV Tastaturbelegung
516+"MythTV playback group editor"
517 "MythTV settings table"
518 "MythTV Status"
519 MythTV Status
520@@ -427,6 +430,8 @@
521 Leute
522 "People Search"
523 Suche nach Darsteller
524+"Playback Group"
525+"Playback Group Editor"
526 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
527 Achtung! Falls diese Tabelle ohne das nötige Hintergrundwissen verÀndert wird, könnte MythTVs FunktionalitÀt nachhaltig gestört werden.
528 "Please search for something."
529@@ -654,6 +659,8 @@
530 Zeige alle Sendungen.
531 "SI Units?"
532 SI Einheiten?
533+"Skip Ahead"
534+"Skip Back"
535 "sourceid"
536 Source ID
537 "Special Searches"
538@@ -690,6 +697,7 @@
539 Donnerstag
540 "Time"
541 Zeit
542+"Time Stretch"
543 "Time Stretch Default"
544 Zeitraffer Vorgabewert
545 "Timeslot size"
546@@ -697,6 +705,7 @@
547 Titel
548 "Title"
549 Titel
550+"Title Match"
551 "Title Search"
552 Titel Suche
553 "Today"
554Index: modules/_shared/lang/Japanese.lang
555===================================================================
556--- modules/_shared/lang/Japanese.lang (revision 9646)
557+++ modules/_shared/lang/Japanese.lang (working copy)
558@@ -185,6 +185,7 @@
559 時間
560 "Edit"
561 線集
562+"Edit existing group"
563 "Edit keybindings on"
564 キヌバむンド線集察象
565 "Edit MythWeb and some MythTV settings."
566@@ -312,6 +313,7 @@
567 䞀芧 タむムキヌ
568 "Listings"
569 番組衚
570+"Load Group"
571 "Logs"
572 ログ
573 "Low"
574@@ -337,6 +339,7 @@
575 "MythTV global defaults"
576 "MythTV key bindings"
577 MythTVキヌバむンド
578+"MythTV playback group editor"
579 "MythTV settings table"
580 "MythTV Status"
581 MythTVステヌタス
582@@ -399,6 +402,8 @@
583 ピヌプル
584 "People Search"
585 ピヌプルサヌチ
586+"Playback Group"
587+"Playback Group Editor"
588 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
589 蚭定項
590目の意味がわからないずきは倉曎しないでください。MythTVが正垞に動䜜しなくなりたす。
591 "Please search for something."
592@@ -623,6 +628,8 @@
593 すべおの番組を衚瀺
594 "SI Units?"
595 SI単䜍を䜿甚する
596+"Skip Ahead"
597+"Skip Back"
598 "sourceid"
599 "Special Searches"
600 スペシャル怜玢
601@@ -659,6 +666,7 @@
602 朚曜日
603 "Time"
604 攟送時間
605+"Time Stretch"
606 "Time Stretch Default"
607 タむムストレッチ蚭定
608 "Timeslot size"
609@@ -666,6 +674,7 @@
610 タむトル
611 "Title"
612 タむトル
613+"Title Match"
614 "Title Search"
615 タむトルサヌチ
616 "Today"
617Index: modules/_shared/lang/English.lang
618===================================================================
619--- modules/_shared/lang/English.lang (revision 9646)
620+++ modules/_shared/lang/English.lang (working copy)
621@@ -102,6 +102,7 @@
622 "Duplicates"
623 "Duration"
624 "Edit"
625+"Edit existing group"
626 "Edit keybindings on"
627 "Edit MythWeb and some MythTV settings."
628 "Edit settings for"
629@@ -177,6 +178,7 @@
630 "Listing &quot;Jump to&quot;"
631 "Listing Time Key"
632 "Listings"
633+"Load Group"
634 "Logs"
635 "Low"
636 "Manual"
637@@ -194,6 +196,7 @@
638 "MythTV channel info"
639 "MythTV global defaults"
640 "MythTV key bindings"
641+"MythTV playback group editor"
642 "MythTV settings table"
643 "MythTV Status"
644 "MythVideo Artwork Dir"
645@@ -234,6 +237,8 @@
646 "Past Year"
647 "People"
648 "People Search"
649+"Playback Group"
650+"Playback Group Editor"
651 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
652 "Please search for something."
653 "plot"
654@@ -402,6 +407,8 @@
655 "Showing all programs from the $1 group."
656 "Showing all programs."
657 "SI Units?"
658+"Skip Ahead"
659+"Skip Back"
660 "sourceid"
661 "Special Searches"
662 "Star character"
663@@ -422,10 +429,12 @@
664 "The requested recording schedule has been deleted."
665 "Thursday"
666 "Time"
667+"Time Stretch"
668 "Time Stretch Default"
669 "Timeslot size"
670 "title"
671 "Title"
672+"Title Match"
673 "Title Search"
674 "Today"
675 "Tomorrow"
676Index: modules/_shared/lang/Czech.lang
677===================================================================
678--- modules/_shared/lang/Czech.lang (revision 9646)
679+++ modules/_shared/lang/Czech.lang (working copy)
680@@ -135,6 +135,7 @@
681 "Duplicates"
682 "Duration"
683 "Edit"
684+"Edit existing group"
685 "Edit keybindings on"
686 "Edit MythWeb and some MythTV settings."
687 "Edit settings for"
688@@ -224,6 +225,7 @@
689 "Listing Time Key"
690 "Listings"
691 VÜpisy
692+"Load Group"
693 "Logs"
694 "Low"
695 "Manual"
696@@ -245,6 +247,7 @@
697 "MythTV channel info"
698 "MythTV global defaults"
699 "MythTV key bindings"
700+"MythTV playback group editor"
701 "MythTV settings table"
702 "MythTV Status"
703 "MythVideo Artwork Dir"
704@@ -295,6 +298,8 @@
705 "Past Year"
706 "People"
707 "People Search"
708+"Playback Group"
709+"Playback Group Editor"
710 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
711 "Please search for something."
712 "plot"
713@@ -474,6 +479,8 @@
714 "Showing all programs from the $1 group."
715 "Showing all programs."
716 "SI Units?"
717+"Skip Ahead"
718+"Skip Back"
719 "sourceid"
720 "Special Searches"
721 "Star character"
722@@ -499,12 +506,14 @@
723 "Thursday"
724 Čtvrtek
725 "Time"
726+"Time Stretch"
727 "Time Stretch Default"
728 "Timeslot size"
729 "title"
730 název
731 "Title"
732 Název
733+"Title Match"
734 "Title Search"
735 "Today"
736 Dnes
737Index: modules/_shared/lang/Finnish.lang
738===================================================================
739--- modules/_shared/lang/Finnish.lang (revision 9646)
740+++ modules/_shared/lang/Finnish.lang (working copy)
741@@ -197,6 +197,7 @@
742 Kesto
743 "Edit"
744 Muokkaa
745+"Edit existing group"
746 "Edit keybindings on"
747 Muokkaa nÀppÀinkomentoja
748 "Edit MythWeb and some MythTV settings."
749@@ -326,6 +327,7 @@
750 Listauksen AikanÀppÀin
751 "Listings"
752 Listaus
753+"Load Group"
754 "Logs"
755 Lokit
756 "Low"
757@@ -351,6 +353,7 @@
758 "MythTV global defaults"
759 "MythTV key bindings"
760 MythTV komennot
761+"MythTV playback group editor"
762 "MythTV settings table"
763 "MythTV Status"
764 MythTV Tila
765@@ -414,6 +417,8 @@
766 "People"
767 "People Search"
768 Haku NimellÀ
769+"Playback Group"
770+"Playback Group Editor"
771 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
772 Varoitus: NÀiden asetusten muokkaus voi haitata MythTV:n toimintaa.
773 "Please search for something."
774@@ -638,6 +643,8 @@
775 NÀytetÀÀn kaikki ohjelmat.
776 "SI Units?"
777 SI-yksiköt
778+"Skip Ahead"
779+"Skip Back"
780 "sourceid"
781 "Special Searches"
782 Edistynyt Haku
783@@ -675,6 +682,7 @@
784 Torstai
785 "Time"
786 Aika
787+"Time Stretch"
788 "Time Stretch Default"
789 Ajan SÀÀdön Oletus
790 "Timeslot size"
791@@ -682,6 +690,7 @@
792 Nimike
793 "Title"
794 Nimike
795+"Title Match"
796 "Title Search"
797 Haku NimikkeellÀ
798 "Today"
799Index: modules/_shared/lang/Slovenian.lang
800===================================================================
801--- modules/_shared/lang/Slovenian.lang (revision 9646)
802+++ modules/_shared/lang/Slovenian.lang (working copy)
803@@ -156,6 +156,7 @@
804 Duplikati
805 "Duration"
806 "Edit"
807+"Edit existing group"
808 "Edit keybindings on"
809 Zamenjaj bliÅŸnjico za
810 "Edit MythWeb and some MythTV settings."
811@@ -269,6 +270,7 @@
812 Seznam
813 "Listings"
814 Seznam
815+"Load Group"
816 "Logs"
817 "Low"
818 Nizka
819@@ -289,6 +291,7 @@
820 "MythTV channel info"
821 "MythTV global defaults"
822 "MythTV key bindings"
823+"MythTV playback group editor"
824 "MythTV settings table"
825 "MythTV Status"
826 "MythVideo Artwork Dir"
827@@ -341,6 +344,8 @@
828 "Past Year"
829 "People"
830 "People Search"
831+"Playback Group"
832+"Playback Group Editor"
833 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
834 "Please search for something."
835 Prosim poiščite kaj
836@@ -544,6 +549,8 @@
837 "Showing all programs."
838 "SI Units?"
839 SI enote
840+"Skip Ahead"
841+"Skip Back"
842 "sourceid"
843 "Special Searches"
844 "Star character"
845@@ -576,12 +583,14 @@
846 Četrtek
847 "Time"
848 Čas
849+"Time Stretch"
850 "Time Stretch Default"
851 "Timeslot size"
852 "title"
853 Naslov
854 "Title"
855 Naslov
856+"Title Match"
857 "Title Search"
858 "Today"
859 Danes
860Index: modules/tv/schedules_custom.php
861===================================================================
862--- modules/tv/schedules_custom.php (revision 9646)
863+++ modules/tv/schedules_custom.php (working copy)
864@@ -100,6 +100,7 @@
865 $schedule->findday = $_POST['findday'];
866 $schedule->autotranscode = $_POST['autotranscode'] ? 1 : 0;
867 $schedule->transcoder = $_POST['transcoder'];
868+ $schedule->playgroup = $_POST['playgroup'];
869 // Parse the findtime
870 $schedule->findtime = trim($_POST['findtime']);
871 if ($schedule->findtime) {
872Index: modules/tv/schedules_manual.php
873===================================================================
874--- modules/tv/schedules_manual.php (revision 9646)
875+++ modules/tv/schedules_manual.php (working copy)
876@@ -87,6 +87,7 @@
877 $schedule->findtime = date('H:m:s', $schedule->starttime);
878 $schedule->autotranscode = $_POST['autotranscode'] ? 1 : 0;
879 $schedule->transcoder = $_POST['transcoder'];
880+ $schedule->playgroup = $_POST['playgroup'];
881 // Figure out the title
882 $channel = $Channels[$_POST['channel']];
883 if (strcasecmp($_POST['title'], t('Use callsign')) == 0) {
884Index: modules/tv/detail.php
885===================================================================
886--- modules/tv/detail.php (revision 9646)
887+++ modules/tv/detail.php (working copy)
888@@ -132,6 +132,7 @@
889 $schedule->endoffset = intval($_POST['endoffset']);
890 $schedule->autotranscode = $_POST['autotranscode'] ? 1 : 0;
891 $schedule->transcoder = $_POST['transcoder'];
892+ $schedule->playgroup = $_POST['playgroup'];
893 $schedule->tsdefault = $_POST['timestretch'];
894 // Keep track of the parent recording for overrides
895 if ($_POST['record'] == rectype_override) {
896Index: modules/tv/tmpl/default/schedules_custom.php
897===================================================================
898--- modules/tv/tmpl/default/schedules_custom.php (revision 9646)
899+++ modules/tv/tmpl/default/schedules_custom.php (working copy)
900@@ -160,6 +160,8 @@
901 echo ">$i</option>";
902 }
903 ?></select></dd>
904+ <dt><?php echo t('Playback Group') ?>:</dt>
905+ <dd><?php playgroup_select($schedule->playgroup) ?></dd>
906 <dt><?php echo t('Check for duplicates in') ?>:</dt>
907 <dd><select name="dupin"><?php
908 echo '<option value="1"';
909Index: modules/tv/tmpl/default/schedules_manual.php
910===================================================================
911--- modules/tv/tmpl/default/schedules_manual.php (revision 9646)
912+++ modules/tv/tmpl/default/schedules_manual.php (working copy)
913@@ -113,6 +113,8 @@
914 echo ">$i</option>";
915 }
916 ?></select></dd>
917+ <dt><?php echo t('Playback Group') ?>:</dt>
918+ <dd><?php playgroup_select($schedule->playgroup) ?></dd>
919 <dt><?php echo t('Check for duplicates in') ?>:</dt>
920 <dd><select name="dupin"><?php
921 echo '<option value="1"';
922Index: modules/tv/tmpl/default/detail.php
923===================================================================
924--- modules/tv/tmpl/default/detail.php (revision 9646)
925+++ modules/tv/tmpl/default/detail.php (working copy)
926@@ -371,6 +371,8 @@
927 echo ">$i</option>";
928 }
929 ?></select></dd>
930+ <dt><?php echo t('Playback Group') ?>:</dt>
931+ <dd><?php playgroup_select($schedule->playgroup) ?></dd>
932 <dt><?php echo t('Time Stretch Default') ?>:</dt>
933 <dd>
934 <select name="timestretch">
935Index: modules/tv/tmpl/default/recorded.php
936===================================================================
937--- modules/tv/tmpl/default/recorded.php (revision 9646)
938+++ modules/tv/tmpl/default/recorded.php (working copy)
939@@ -68,6 +68,14 @@
940 +'&chanid='+file.chanid+'&starttime='+file.starttime);
941 }
942
943+ function set_playgroup(id) {
944+ var file = files[id];
945+ var sel = get_element('playgroup_' + file.chanid + '.' + file.starttime);
946+ submit_url('<?php echo root ?>tv/recorded?ajax&playgroup='+
947+ sel.options[sel.selectedIndex].value+
948+ '&chanid='+file.chanid+'&starttime='+file.starttime);
949+ }
950+
951 function confirm_delete(id, forget_old) {
952 var file = files[id];
953 if (confirm("<?php echo t('Are you sure you want to delete the following show?') ?>\n\n "+file.title+": "+file.subtitle)) {
954@@ -325,6 +333,9 @@
955 name="autoexpire_<?php echo $show->chanid, '.', $show->recstartts ?>"
956 <?php if ($show->auto_expire) echo ' CHECKED' ?> onchange="set_autoexpire(<?php echo $row ?>)" />
957 </span>
958+ <span style="padding-right: 25px"><?php echo strtolower(t('Playback Group')) ?>:&nbsp;
959+ <?php playgroup_select($show->playgroup, 'playgroup', "set_playgroup($row)", $show->chanid . '.' . $show->recstartts) ?>
960+ </span>
961 <?php echo t('has bookmark') ?>:&nbsp;
962 <b><?php echo $show->bookmark ? t('Yes') : t('No') ?></b>
963 </td>
964Index: modules/tv/recorded.php
965===================================================================
966--- modules/tv/recorded.php (revision 9646)
967+++ modules/tv/recorded.php (working copy)
968@@ -58,18 +58,27 @@
969
970 // Auto-expire
971 isset($_GET['autoexpire']) or $_GET['autoexpire'] = $_POST['autoexpire'];
972- if (isset($_GET['autoexpire']) && $_GET['chanid'] && $_GET['starttime']) {
973+ if (isset($_GET['autoexpire']) && $_GET['chanid'] && $_GET['starttime'])
974 $sh = $db->query('UPDATE recorded
975 SET autoexpire = ?
976 WHERE chanid = ? AND starttime = FROM_UNIXTIME(?)',
977 $_GET['autoexpire'] ? 1 : 0,
978 $_GET['chanid'],
979 $_GET['starttime']);
980+// Playback group edit
981+ isset($_GET['playgroup']) or $_GET['playgroup'] = $_POST['playgroup'];
982+ if(isset($_GET['playgroup']) && $_GET['chanid'] && $_GET['starttime'])
983+ $sh = $db->query('UPDATE recorded
984+ SET playgroup = ?
985+ WHERE chanid = ? AND starttime = FROM_UNIXTIME(?)',
986+ $_GET['playgroup'],
987+ $_GET['chanid'],
988+ $_GET['starttime']);
989+
990 // Exit early if we're in AJAX mode.
991- if (isset($_GET['ajax'])) {
992- echo 'success';
993- exit;
994- }
995+ if (isset($_GET['ajax'])) {
996+ echo 'success';
997+ exit;
998 }
999 else {
1000 /** @todo need some sort of handler here for the non-ajax stuff */