<br><br><div class="gmail_quote">On 4 February 2012 16:40, Raymond Wagner <span dir="ltr"><<a href="mailto:raymond@wagnerrp.com">raymond@wagnerrp.com</a>></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>
> oldbase = prog.basename.rsplit('.',1)[0]<br>
> File "/usr/lib/pymodules/python2.7/MythTV/altdict.py", line 27, in<br>
> __getattr__<br>
> raise AttributeError(str(name))<br>
> AttributeError: basename<br>
<br>
</div>'basename' is the field used to store that value in the database, but<br>
you actually want 'filename' 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 "/home/dave/uksub2srt/rename.py", line 22, in <module></div>
<div> '-o', '/home/dave/Downloads/subtitles/{0}.srt'.format(newbase))</div><div> File "/usr/lib/pymodules/python2.7/MythTV/system.py", line 57, in __call__</div><div> def __call__(self, *args): return self.command(*args)</div>
<div> File "/usr/lib/pymodules/python2.7/MythTV/system.py", line 89, in command</div><div> return self._runcmd('%s %s' % (self.path, arg))</div><div> File "/usr/lib/pymodules/python2.7/MythTV/system.py", 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>