<br><br><div class="gmail_quote">On 4 February 2012 16:40, Raymond Wagner <span dir="ltr">&lt;<a href="mailto:raymond@wagnerrp.com">raymond@wagnerrp.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 2/4/2012 11:33, David Crawford wrote:<br>
&gt;     oldbase = prog.basename.rsplit(&#39;.&#39;,1)[0]<br>
&gt;   File &quot;/usr/lib/pymodules/python2.7/MythTV/altdict.py&quot;, line 27, in<br>
&gt; __getattr__<br>
&gt;     raise AttributeError(str(name))<br>
&gt; AttributeError: basename<br>
<br>
</div>&#39;basename&#39; is the field used to store that value in the database, but<br>
you actually want &#39;filename&#39; within the context of the Program class.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br><div>Changed all cases of basename to filename and now get a new error:</div><div><br></div><div><div>Traceback (most recent call last):</div><div>  File &quot;/home/dave/uksub2srt/rename.py&quot;, line 22, in &lt;module&gt;</div>
<div>    &#39;-o&#39;, &#39;/home/dave/Downloads/subtitles/{0}.srt&#39;.format(newbase))</div><div>  File &quot;/usr/lib/pymodules/python2.7/MythTV/system.py&quot;, line 57, in __call__</div><div>    def __call__(self, *args): return self.command(*args)</div>
<div>  File &quot;/usr/lib/pymodules/python2.7/MythTV/system.py&quot;, line 89, in command</div><div>    return self._runcmd(&#39;%s %s&#39; % (self.path, arg))</div><div>  File &quot;/usr/lib/pymodules/python2.7/MythTV/system.py&quot;, line 98, in _runcmd</div>
<div>    raise MythError(MythError.SYSTEM,self.returncode,cmd,self.stderr)</div><div>MythTV.exceptions.MythError: External system call failed: code 126</div></div><div><br></div><div><br></div>