Thanks again,<div><br></div><div>but do i run this as a python script or what? sorry still learning..</div><div><br></div><div>cheers<br><br><div class="gmail_quote">On 3 February 2012 00:53, 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 bgcolor="#FFFFFF" text="#000000">
On 2/2/2012 18:15, David Crawford wrote
<blockquote type="cite">
<div>
<div>
<div class="gmail_quote"><div class="im">
On 2 February 2012 22:00, Raymond Wagner <span dir="ltr"><<a href="mailto:raymond@wagnerrp.com" target="_blank">raymond@wagnerrp.com</a>></span>
wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> As for running the
extractor itself, try...<br>
<br>
from MythTV import System<br>
from MythTV.static import INSTALL_PREFIX<br>
ccextractor =
System(path=os.path.join(INSTALL_PREFIX,'mythccextractor'))<br>
ccextractor('--infile', os.path.join(sg.dirname,
prog.basename))<br>
</div>
</blockquote>
</div></div>
<br>
</div>
</div><div class="im">
current command that works is:
<div><br>
</div>
<div>python /home/dave/uksub2srt/uksub2srt.py -i "%DIR%/%FILE%" -o
/home/subtitles/"%FILE%".srt</div>
<div><br>
</div>
<div>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?</div>
</div></blockquote>
<br>
from MythTV import System<br>
ccextractor = System(path="/home/dave/uksub2srt/uksub2srt.py")<br>
ccextractor('-i', os.path.join(sg.dirname, prog.basename),<br>
'-o', '/home/subtitles/{0}.srt'.format(newbase))<br>
</div>
<br>_______________________________________________<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>
<br></blockquote></div><br></div>