Index: mythweb/includes/recording_schedules.php
===================================================================
--- mythweb/includes/recording_schedules.php	(revision 9619)
+++ mythweb/includes/recording_schedules.php	(working copy)
@@ -143,6 +143,7 @@
     var $findid;
     var $transcoder;
     var $parentid;
+    var $playgroup;
 
     var $texttype;
     var $channel;
@@ -251,7 +252,7 @@
     // Update the type, in case it changed
         $this->type = $new_type;
     // Update the record
-        $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 ('
+        $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 ('
                                 .escape($this->recordid, true)             .','
                                 .escape($this->type)                       .','
                                 .escape($this->chanid)                     .','
@@ -289,7 +290,8 @@
                                 .escape($this->autouserjob1)               .','
                                 .escape($this->autouserjob2)               .','
                                 .escape($this->autouserjob3)               .','
-                                .escape($this->autouserjob4)               .')')
+                                .escape($this->autouserjob4)               .','
+				.escape($this->playgroup)                  .')')
             or trigger_error('SQL Error: '.mysql_error(), FATAL);
     // Get the id that was returned
         $recordid = mysql_insert_id();
@@ -512,4 +514,28 @@
         echo '</select>';
     }
 
+/**
+ * prints a <select> of the various playback groups available
+/**/
+    function playgroup_select($this_playgroup, $name = 'playgroup')
+    {
+        static $playgroups = array();
+        if(!sizeof($playgroups))
+        {
+            $res = mysql_query('SELECT name FROM playgroup');
+            while($row = mysql_fetch_row($res))
+                $playgroups[$row[0]] = $row[0];
+            mysql_free_result($res);
+        }
 
+        echo "<select name=\"$name\">\n";
+        foreach($playgroups as $playgroup)
+        {
+            echo "\t<option value=\"" . html_entities($playgroup) . '"';
+            if($this_playgroup == $playgroup)
+                echo ' SELECTED';
+            echo '>' . html_entities($playgroup) . "</option>\n";
+        }
+        echo "</select>\n";
+        return;
+    }
Index: mythweb/modules/_shared/lang/English_GB.lang
===================================================================
--- mythweb/modules/_shared/lang/English_GB.lang	(revision 9619)
+++ mythweb/modules/_shared/lang/English_GB.lang	(working copy)
@@ -244,6 +244,7 @@
 "Past Year"
 "People"
 "People Search"
+"Playback Group"
 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
 "Please search for something."
 "plot"
Index: mythweb/modules/_shared/lang/French.lang
===================================================================
--- mythweb/modules/_shared/lang/French.lang	(revision 9619)
+++ mythweb/modules/_shared/lang/French.lang	(working copy)
@@ -347,6 +347,7 @@
 "Past Year"
 "People"
 "People Search"
+"Playback Group"
 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
     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
 "Please search for something."
Index: mythweb/modules/_shared/lang/Spanish.lang
===================================================================
--- mythweb/modules/_shared/lang/Spanish.lang	(revision 9619)
+++ mythweb/modules/_shared/lang/Spanish.lang	(working copy)
@@ -427,6 +427,7 @@
     Gente
 "People Search"
     Búsqueda gente
+"Playback Group"
 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
     Tenga cuidado al alterar esta tabla sin saber lo que hace, puede romper el funcionamiento de MythTV
 "Please search for something."
Index: mythweb/modules/_shared/lang/Danish.lang
===================================================================
--- mythweb/modules/_shared/lang/Danish.lang	(revision 9619)
+++ mythweb/modules/_shared/lang/Danish.lang	(working copy)
@@ -374,6 +374,7 @@
 "Past Year"
 "People"
 "People Search"
+"Playback Group"
 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
     Bemærk at ved at ændre i denne tabel uden at vide hvad du laver, kan du ødelægge mythtvs funktioner.
 "Please search for something."
Index: mythweb/modules/_shared/lang/Swedish.lang
===================================================================
--- mythweb/modules/_shared/lang/Swedish.lang	(revision 9619)
+++ mythweb/modules/_shared/lang/Swedish.lang	(working copy)
@@ -431,6 +431,7 @@
     Person
 "People Search"
     Sök person
+"Playback Group"
 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
     OBS! Genom att ändra dessa inställningar utan att veta vad du gör kan du allvarligt störa MythTVs funktionalitet.
 "Please search for something."
Index: mythweb/modules/_shared/lang/Dutch.lang
===================================================================
--- mythweb/modules/_shared/lang/Dutch.lang	(revision 9619)
+++ mythweb/modules/_shared/lang/Dutch.lang	(working copy)
@@ -430,6 +430,7 @@
     Personen
 "People Search"
     Personen zoeken
+"Playback Group"
 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
     Waarschuwing! Als u niet weet wat u doet, kan het veranderen van deze tabel de werking van MythTV ernstig verstoren.
 "Please search for something."
Index: mythweb/modules/_shared/lang/German.lang
===================================================================
--- mythweb/modules/_shared/lang/German.lang	(revision 9619)
+++ mythweb/modules/_shared/lang/German.lang	(working copy)
@@ -427,6 +427,7 @@
     Leute
 "People Search"
     Suche nach Darsteller
+"Playback Group"
 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
     Achtung! Falls diese Tabelle ohne das nötige Hintergrundwissen verändert wird, könnte MythTVs Funktionalität nachhaltig gestört werden.
 "Please search for something."
Index: mythweb/modules/_shared/lang/Japanese.lang
===================================================================
--- mythweb/modules/_shared/lang/Japanese.lang	(revision 9619)
+++ mythweb/modules/_shared/lang/Japanese.lang	(working copy)
@@ -399,6 +399,7 @@
     ピープル
 "People Search"
     ピープルサーチ
+"Playback Group"
 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
     設定項目の意味がわからないときは変更しないでください。MythTVが正常に動作しなくなります。
 "Please search for something."
Index: mythweb/modules/_shared/lang/English.lang
===================================================================
--- mythweb/modules/_shared/lang/English.lang	(revision 9619)
+++ mythweb/modules/_shared/lang/English.lang	(working copy)
@@ -234,6 +234,7 @@
 "Past Year"
 "People"
 "People Search"
+"Playback Group"
 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
 "Please search for something."
 "plot"
Index: mythweb/modules/_shared/lang/Czech.lang
===================================================================
--- mythweb/modules/_shared/lang/Czech.lang	(revision 9619)
+++ mythweb/modules/_shared/lang/Czech.lang	(working copy)
@@ -295,6 +295,7 @@
 "Past Year"
 "People"
 "People Search"
+"Playback Group"
 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
 "Please search for something."
 "plot"
Index: mythweb/modules/_shared/lang/Finnish.lang
===================================================================
--- mythweb/modules/_shared/lang/Finnish.lang	(revision 9619)
+++ mythweb/modules/_shared/lang/Finnish.lang	(working copy)
@@ -414,6 +414,7 @@
 "People"
 "People Search"
     Haku Nimellä
+"Playback Group"
 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
     Varoitus: Näiden asetusten muokkaus voi haitata MythTV:n toimintaa.
 "Please search for something."
Index: mythweb/modules/_shared/lang/Slovenian.lang
===================================================================
--- mythweb/modules/_shared/lang/Slovenian.lang	(revision 9619)
+++ mythweb/modules/_shared/lang/Slovenian.lang	(working copy)
@@ -341,6 +341,7 @@
 "Past Year"
 "People"
 "People Search"
+"Playback Group"
 "Please be warned that by altering this table without knowing what you are doing, you could seriously disrupt mythtv functionality."
 "Please search for something."
     Prosim poiščite kaj
Index: mythweb/modules/tv/schedules_custom.php
===================================================================
--- mythweb/modules/tv/schedules_custom.php	(revision 9619)
+++ mythweb/modules/tv/schedules_custom.php	(working copy)
@@ -100,6 +100,7 @@
             $schedule->findday       = $_POST['findday'];
             $schedule->autotranscode = $_POST['autotranscode'] ? 1 : 0;
             $schedule->transcoder    = $_POST['transcoder'];
+            $schedule->playgroup     = $_POST['playgroup'];
         // Parse the findtime
             $schedule->findtime      = trim($_POST['findtime']);
             if ($schedule->findtime) {
Index: mythweb/modules/tv/schedules_manual.php
===================================================================
--- mythweb/modules/tv/schedules_manual.php	(revision 9619)
+++ mythweb/modules/tv/schedules_manual.php	(working copy)
@@ -87,6 +87,7 @@
             $schedule->findtime    = date('H:m:s', $schedule->starttime);
             $schedule->autotranscode = $_POST['autotranscode'] ? 1 : 0;
             $schedule->transcoder  = $_POST['transcoder'];
+            $schedule->playgroup   = $_POST['playgroup'];
         // Figure out the title
             $channel = $Channels[$_POST['channel']];
             if (strcasecmp($_POST['title'], t('Use callsign')) == 0) {
Index: mythweb/modules/tv/detail.php
===================================================================
--- mythweb/modules/tv/detail.php	(revision 9619)
+++ mythweb/modules/tv/detail.php	(working copy)
@@ -132,6 +132,7 @@
             $schedule->endoffset     = intval($_POST['endoffset']);
             $schedule->autotranscode = $_POST['autotranscode'] ? 1 : 0;
             $schedule->transcoder    = $_POST['transcoder'];
+            $schedule->playgroup     = $_POST['playgroup'];
             $schedule->tsdefault     = $_POST['timestretch'];
         // Keep track of the parent recording for overrides
             if ($_POST['record'] == rectype_override) {
Index: mythweb/modules/tv/tmpl/default/schedules_custom.php
===================================================================
--- mythweb/modules/tv/tmpl/default/schedules_custom.php	(revision 9619)
+++ mythweb/modules/tv/tmpl/default/schedules_custom.php	(working copy)
@@ -160,6 +160,8 @@
                         echo ">$i</option>";
                     }
                     ?></select></dd>
+                <dt><?php echo t('Playback Group') ?>:</dt>
+                <dd><?php playgroup_select($schedule->playgroup) ?></dd>
                 <dt><?php echo t('Check for duplicates in') ?>:</dt>
                 <dd><select name="dupin"><?php
                         echo '<option value="1"';
Index: mythweb/modules/tv/tmpl/default/schedules_manual.php
===================================================================
--- mythweb/modules/tv/tmpl/default/schedules_manual.php	(revision 9619)
+++ mythweb/modules/tv/tmpl/default/schedules_manual.php	(working copy)
@@ -113,6 +113,8 @@
                         echo ">$i</option>";
                     }
                     ?></select></dd>
+                <dt><?php echo t('Playback Group') ?>:</dt>
+                <dd><?php playgroup_select($schedule->playgroup) ?></dd>
                 <dt><?php echo t('Check for duplicates in') ?>:</dt>
                 <dd><select name="dupin"><?php
                         echo '<option value="1"';
Index: mythweb/modules/tv/tmpl/default/detail.php
===================================================================
--- mythweb/modules/tv/tmpl/default/detail.php	(revision 9619)
+++ mythweb/modules/tv/tmpl/default/detail.php	(working copy)
@@ -371,6 +371,8 @@
                         echo ">$i</option>";
                     }
                     ?></select></dd>
+                <dt><?php echo t('Playback Group') ?>:</dt>
+                <dd><?php playgroup_select($schedule->playgroup) ?></dd>
                 <dt><?php echo t('Time Stretch Default') ?>:</dt>
                 <dd>
                     <select name="timestretch">
