[mythtv-users] User Job to rip subtitles from each program
David Crawford
davidcrawford83 at gmail.com
Fri Feb 3 00:57:18 UTC 2012
Thanks again,
but do i run this as a python script or what? sorry still learning..
cheers
On 3 February 2012 00:53, Raymond Wagner <raymond at wagnerrp.com> wrote:
> On 2/2/2012 18:15, David Crawford wrote
>
> On 2 February 2012 22:00, Raymond Wagner <raymond at wagnerrp.com> wrote:
>
>> As for running the extractor itself, try...
>>
>> from MythTV import System
>> from MythTV.static import INSTALL_PREFIX
>> ccextractor = System(path=os.path.join(INSTALL_PREFIX,'mythccextractor'))
>> ccextractor('--infile', os.path.join(sg.dirname, prog.basename))
>>
>
> current command that works is:
>
> python /home/dave/uksub2srt/uksub2srt.py -i "%DIR%/%FILE%" -o
> /home/subtitles/"%FILE%".srt
>
> is there anyway i can include the script to rename the subtitle file in
> that command, or would it be better just to run a separate script after?
>
>
> from MythTV import System
> ccextractor = System(path="/home/dave/uksub2srt/uksub2srt.py")
> ccextractor('-i', os.path.join(sg.dirname, prog.basename),
> '-o', '/home/subtitles/{0}.srt'.format(newbase))
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120203/fb29dfe6/attachment.html
More information about the mythtv-users
mailing list