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">&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 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">&lt;<a href="mailto:raymond@wagnerrp.com" target="_blank">raymond@wagnerrp.com</a>&gt;</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,&#39;mythccextractor&#39;))<br>
                ccextractor(&#39;--infile&#39;, 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 &quot;%DIR%/%FILE%&quot; -o
        /home/subtitles/&quot;%FILE%&quot;.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=&quot;/home/dave/uksub2srt/uksub2srt.py&quot;)<br>
    ccextractor(&#39;-i&#39;, os.path.join(sg.dirname, prog.basename),<br>
                &#39;-o&#39;, &#39;/home/subtitles/{0}.srt&#39;.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>