OSDN Git Service

fix log data.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 13 Sep 2009 00:33:32 +0000 (00:33 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sun, 13 Sep 2009 00:33:32 +0000 (00:33 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@153 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/timerec.py
rec10/trunk/src/tv2ts.py

index 1caa500..0b93f05 100644 (file)
@@ -220,7 +220,6 @@ def task():
                         btime = bt.strftime("%Y-%m-%d %H:%M:%S")
                         etime = et.strftime("%Y-%m-%d %H:%M:%S")
                         recdb.rec_reckey(recdb.REC_ENCODE_QUE, title, chtxt, btime, etime, opt)
-                        print "b25check " + recpath + "/" + title + ".ts.b25 " + recpath + "/" + title + ".ts"
                         print checker.checkB25Decode(recpath + "/" + title + ".ts.b25", recpath + "/" + title + ".ts")
                         if checker.checkB25Decode(recpath + "/" + title + ".ts.b25", recpath + "/" + title + ".ts") == 1:
                             os.remove(recpath + "/" + title + ".ts.b25")
index 4450364..d9df013 100644 (file)
@@ -5,6 +5,7 @@ import commands
 import os
 import shutil
 import time
+import sys
 
 import configreader
 import status
@@ -74,9 +75,15 @@ def tv2b25ts_b25(pout, ch, time):
     os.system(doexe)
 def b252tsmix(pin, pout):
     exe = configreader.getpath('b25')
-    doexe = exe.encode('utf-8') + u' \'' + pin.encode('utf-8') + u'\' \'' + pout.encode('utf-8') + u'\''
+    #doexe = exe.encode('utf-8') + u' \"' + pin.encode('utf-8') + u'\" \"' + pout.encode('utf-8') + u'\"'
+    doexe = exe + u' \"' + pin + u'\" \"' + pout + u'\"'
     doexe = "nice -n 17 " + doexe
+    print doexe
+    sys.stdout.flush()
     txt = commands.getoutput(doexe)
+    f=open(pin+".log",'w')
+    f.write(txt)
+    f.close()
 def tsmix2ts(pin, pout, csch):#csch=0ならcsの処理をしない
     if csch == "0":
         time.sleep(1)
@@ -85,6 +92,7 @@ def tsmix2ts(pin, pout, csch):#csch=0ならcsの処理をしない
         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):