[mythtv-users] User Job to rip subtitles from each program

David Crawford davidcrawford83 at gmail.com
Sat Feb 4 16:48:45 UTC 2012


On 4 February 2012 16:40, Raymond Wagner <raymond at wagnerrp.com> wrote:

> On 2/4/2012 11:33, David Crawford wrote:
> >     oldbase = prog.basename.rsplit('.',1)[0]
> >   File "/usr/lib/pymodules/python2.7/MythTV/altdict.py", line 27, in
> > __getattr__
> >     raise AttributeError(str(name))
> > AttributeError: basename
>
> 'basename' is the field used to store that value in the database, but
> you actually want 'filename' within the context of the Program class.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>

Changed all cases of basename to filename and now get a new error:

Traceback (most recent call last):
  File "/home/dave/uksub2srt/rename.py", line 22, in <module>
    '-o', '/home/dave/Downloads/subtitles/{0}.srt'.format(newbase))
  File "/usr/lib/pymodules/python2.7/MythTV/system.py", line 57, in __call__
    def __call__(self, *args): return self.command(*args)
  File "/usr/lib/pymodules/python2.7/MythTV/system.py", line 89, in command
    return self._runcmd('%s %s' % (self.path, arg))
  File "/usr/lib/pymodules/python2.7/MythTV/system.py", line 98, in _runcmd
    raise MythError(MythError.SYSTEM,self.returncode,cmd,self.stderr)
MythTV.exceptions.MythError: External system call failed: code 126
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120204/fcd31012/attachment.html 


More information about the mythtv-users mailing list