OSDN Git Service

make it to use jTsSplitter.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Wed, 28 Oct 2009 22:16:29 +0000 (22:16 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Wed, 28 Oct 2009 22:16:29 +0000 (22:16 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@196 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/config.ini
rec10/trunk/src/tv2ts.py

index a81ea12..bb7c2a9 100644 (file)
@@ -10,7 +10,7 @@ recpath = /path of /recording
 #録画終了後に動画を置いておくフォルダを指定するとrectool.plでリスト化できます。
 recorded = /path of /recordedpath
 epgdump = 
-tssplitter_lite = 
+tssplitter = 
 gridserver_port=10910
 ##dbの種類を決める。 db= SQLite もしくはMySQL
 #
index 6546cb2..3f4c775 100644 (file)
@@ -122,16 +122,12 @@ def b252tsmix(pin, pout):
     f.write(txt)
     f.close()
 def tsmix2ts(pin, pout, csch):#csch=0ならcsの処理をしない
-    if csch == "0":
-        time.sleep(1)
-        shutil.move(pin, pout)
-    else:
-        doexe = configreader.getpath("tssplitter_lite") + " \"" + pin + "\" \"" + pout + "\" " + str(csch)
-        doexe = "nice -n 18 " + doexe
-        print doexe
-        sys.stdout.flush()
-        os.system(doexe)
-        time.sleep(1)
-        if os.access(pout, os.F_OK):
-            os.remove(pin)
+    doexe = configreader.getpath("tssplitter") + " \"" + pin + "\" \"" + pout + "\" " + str(csch)
+    doexe = "nice -n 18 " + doexe
+    print doexe
+    sys.stdout.flush()
+    os.system(doexe)
+    time.sleep(1)
+    if os.access(pout, os.F_OK):
+        os.remove(pin)