<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
&gt;&gt;&gt;&gt; Or, you can write your own script that can be run at the command-line or<br>
&gt;&gt;&gt;&gt; through cron, using the Python bindings.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; <a href="http://www.mythtv.org/wiki/0.24_Python_bindings/Connection_Handlers#lockTuner" target="_blank">http://www.mythtv.org/wiki/0.24_Python_bindings/Connection_Handlers#lockTuner</a><br>
&gt;&gt;&gt;&gt; (Description isn&#39;t complete, yet, but if you pass a capture card ID, you<br>
&gt;&gt;&gt;&gt; can tell it  to lock a specific tuner--tell mythbackend that tuner is<br>
&gt;&gt;&gt;&gt; not available, so it won&#39;t be used for scheduling.  You&#39;ll need to keep<br>
&gt;&gt;&gt;&gt; the connection from the python script to the backend open as long as you<br>
&gt;&gt;&gt;&gt; want the tuner locked--the destructor will unlock anything prior to<br>
&gt;&gt;&gt;&gt; closing the connection.  So, if done on a cron job, the first script<br>
&gt;&gt;&gt;&gt; could lock the tuner and keep it open and the second could )<br>
&gt;&gt; Heh, forgot to finish the thought...  &quot;the second could just kill the<br>
&gt;&gt; first process.&quot;<br>
<br>
</div>Posting a copy of the script(s) to the wiki, along with descriptions and<br>
additional instructions, would be wonderful.<br>
<br>
<a href="http://www.mythtv.org/wiki/Category:Scripts" target="_blank">http://www.mythtv.org/wiki/Category:Scripts</a><br>
<a href="http://www.mythtv.org/wiki/Category:Python_Scripts" target="_blank">http://www.mythtv.org/wiki/Category:Python_Scripts</a><br>
<br>
You can use one of the Python Script pages to get the &quot;template&quot; for<br>
setting up code boxes and categories, or feel free to ask for help here<br>
or in #mythtv-users on IRC.<br>
<br>
Thanks,<br>
<div><div></div><div class="h5">Mike<br></div></div></blockquote><div><br></div><div>I may jump in IRC later tonight or this weekend to ask some more questions.</div><div><br></div><div>However, after some simple playing around (with the python bindings) lockTuner(), it seemed to work a little strangely. The recording didn&#39;t record just like you said, but in MythWeb under Listings, the recording showed up as &quot;recorded&quot; but &quot;Recorded Programs&quot; didn&#39;t show the recording. I also assumed that it rescheduled it later but I forgot to look before I deleted the schedule.</div>
<div><br></div><div>Also, when I tried to freeTuner(0) or freeTuner(1) I got: </div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>[stack trace]</div><div><div>File &quot;/usr/lib/pymodules/python2.6/MythTV/methodheap.py&quot;, line 141, in free</div>
<div>    res = self.getRecorderDetails(id).hostname</div><div>AttributeError: &#39;MythBE&#39; object has no attribute &#39;getRecorderDetails&#39;</div></div><div>[/stack trace]</div><div><br></div><div>I didn&#39;t dig into the source to see what was up, but I thought someone would know of any problems in the source currently. I&#39;m running Ubuntu 10.04 with the mythbuntu addon .24 + fixes if that helps. So I just killed the process that had the MythBE connection and subsequent recordings were skipped, like the tuner was still locked. This happened to my twice and the only fix was to restart the server (I suppose restarting mythbackend would have worked too). I didn&#39;t have a ton of time to debug this so I&#39;ll try it again later.</div>
<div><br></div><div>Any help would be great!</div><div><br></div></div>