<p dir="ltr"><br>
On Jun 11, 2014 9:40 PM, &quot;<a href="mailto:rdvAndroid@gmail.com">rdvAndroid@gmail.com</a>&quot; &lt;<a href="mailto:rdvandroid@gmail.com">rdvandroid@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Daniel,<br>
&gt;<br>
&gt; Cut and paste the following lines in a terminal session on the BE thatyou run Mirobridge:<br>
&gt; ----------------------------- Cut code starting on next line<br>
&gt; python<br>
&gt; from MythTV import Record<br>
&gt; makeRecordRule = {&#39;chanid&#39;: &quot;9999&quot;, &#39;description&#39;: u&#39;Mirobridge Record rule used to acquire <a href="http://ttvdb.com">ttvdb.com</a> artwork&#39;,<br>
&gt;                                &#39;autometadata&#39;: 1, &#39;season&#39;: 1, &#39;episode&#39;: 1, &#39;category&#39;: u&#39;Miro&#39;, &#39;station&#39;: u&#39;Miro&#39;  }<br>
&gt; makeRecordRule[&#39;title&#39;] = &quot;Tekzilla&quot;<br>
&gt; makeRecordRule[&#39;inetref&#39;] = &quot;999999&quot;<br>
&gt; record = Record().create(makeRecordRule)<br>
&gt; print record<br>
&gt; record.delete()<br>
&gt; exit(0)<br>
&gt; ---------------------------- Stop cutting code prior to this line<br>
&gt;<br>
&gt; My results with an environment that has a working MiroBridge looks like this:<br>
&gt; doug@ubuntuQuad:~$ python<br>
&gt; Python 2.7.3 (default, Feb 27 2014, 19:37:34)<br>
&gt; [GCC 4.7.2] on linux2<br>
&gt; Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>
&gt; &gt;&gt;&gt; from MythTV import Record<br>
&gt; &gt;&gt;&gt; makeRecordRule = {&#39;chanid&#39;: &quot;9999&quot;, &#39;description&#39;: u&#39;Mirobridge Record rule used to acquire <a href="http://ttvdb.com">ttvdb.com</a> artwork&#39;,<br>
&gt; ...                                &#39;autometadata&#39;: 1, &#39;season&#39;: 1, &#39;episode&#39;: 1, &#39;category&#39;: u&#39;Miro&#39;, &#39;station&#39;: u&#39;Miro&#39;  }<br>
&gt; &gt;&gt;&gt; makeRecordRule[&#39;title&#39;] = &quot;Tekzilla&quot;<br>
&gt; &gt;&gt;&gt; makeRecordRule[&#39;inetref&#39;] = &quot;999999&quot;<br>
&gt; &gt;&gt;&gt; record = Record().create(makeRecordRule)<br>
&gt; &gt;&gt;&gt; print record<br>
&gt; &lt;Record Rule &#39;Tekzilla&#39;, Type 11 at 0x10e42c0&gt;<br>
&gt; &gt;&gt;&gt; record.delete()<br>
&gt; &gt;&gt;&gt; exit(0)<br>
&gt; doug@ubuntuQuad:~$<br>
&gt;<br>
&gt; If your environment aborts then the issue is in your environement. The code above is the standard way to create a &quot;Record&quot; record using the MythTV python bindings. If the record is created then it is immediately deleted so you will not need to clean up your database after running the test. You can run this test as many times as you like as long as you include the &quot;record.delete()&quot; statement.<br>

&gt;<br>
&gt; Please paste back the results of your test.<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt;<br>
&gt; Doug<br>
&gt; _______________________________________________<br>
&gt; mythtv-users mailing list<br>
&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
&gt; <a href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
&gt; MythTV Forums: <a href="https://forum.mythtv.org">https://forum.mythtv.org</a></p>
<p dir="ltr">Doug,<br>
Thanks for your help.  Here is the output I received. It did error out.</p>
<p dir="ltr">dmfrey@mythcenter:~$ python<br>
Python 2.7.3 (default, Feb 27 2014, 19:58:35)<br>
[GCC 4.6.3] on linux2<br>
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>
&gt;&gt;&gt; from MythTV import Record<br>
&gt;&gt;&gt; makeRecordRule = {&#39;chanid&#39;: &quot;9999&quot;, &#39;description&#39;: u&#39;Mirobridge Record rule used to acquire <a href="http://ttvdb.com">ttvdb.com</a> artwork&#39;,<br>
...                                &#39;autometadata&#39;: 1, &#39;season&#39;: 1, &#39;episode&#39;: 1, &#39;category&#39;: u&#39;Miro&#39;, &#39;station&#39;: u&#39;Miro&#39;  }<br>
&gt;&gt;&gt; makeRecordRule[&#39;title&#39;] = &quot;Tekzilla&quot;<br>
&gt;&gt;&gt; makeRecordRule[&#39;inetref&#39;] = &quot;999999&quot;<br>
&gt;&gt;&gt; record = Record().create(makeRecordRule)<br>
Traceback (most recent call last):<br>
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
  File &quot;/usr/lib/python2.7/dist-packages/MythTV/dataheap.py&quot;, line 161, in __init__<br>
    DBDataWrite.__init__(self, data, db)<br>
  File &quot;/usr/lib/python2.7/dist-packages/MythTV/database.py&quot;, line 317, in __init__<br>
    DBData.__init__(self, data, db)<br>
  File &quot;/usr/lib/python2.7/dist-packages/MythTV/database.py&quot;, line 169, in __init__<br>
    self._setDefs()<br>
  File &quot;/usr/lib/python2.7/dist-packages/MythTV/database.py&quot;, line 305, in _setDefs<br>
    DBData._setDefs(self)<br>
  File &quot;/usr/lib/python2.7/dist-packages/MythTV/database.py&quot;, line 160, in _setDefs<br>
    self.__class__._setClassDefs(self._db)<br>
  File &quot;/usr/lib/python2.7/dist-packages/MythTV/dataheap.py&quot;, line 118, in _setClassDefs<br>
    defaults = cls._template(&#39;Default&#39;, db=db)<br>
  File &quot;/usr/lib/python2.7/dist-packages/MythTV/dataheap.py&quot;, line 128, in _template<br>
    tmp = cls._fromQuery(&quot;WHERE title=?&quot;, (name + &quot; (Template)&quot;,))\<br>
StopIteration<br>
&gt;&gt;&gt; print record<br>
Traceback (most recent call last):<br>
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
NameError: name &#39;record&#39; is not defined<br>
&gt;&gt;&gt; record.delete()<br>
Traceback (most recent call last):<br>
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
NameError: name &#39;record&#39; is not defined<br>
&gt;&gt;&gt; exit(0)</p>
<p dir="ltr">Dan</p>