<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 2/2/2012 18:15, David Crawford wrote
    <blockquote
cite="mid:CAFiR-D9arv-KnTpEKRfio-nCuCVKz7PGKQiNBdzBJnMqyrW3Zw@mail.gmail.com"
      type="cite">
      <div>
        <div>
          <div class="gmail_quote">
            On 2 February 2012 22:00, Raymond Wagner <span dir="ltr">&lt;<a
                moz-do-not-send="true"
                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">&nbsp;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>
          <br>
        </div>
      </div>
      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>
    </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>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '-o', '/home/subtitles/{0}.srt'.format(newbase))<br>
  </body>
</html>