From 799114476f29e79333385b78585c20e9d1fb751a Mon Sep 17 00:00:00 2001 From: gn64_jp Date: Sun, 13 Sep 2009 00:33:32 +0000 Subject: [PATCH] fix log data. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@153 4e526526-5e11-4fc0-8910-f8fd03428081 --- rec10/trunk/src/timerec.py | 1 - rec10/trunk/src/tv2ts.py | 10 +++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/rec10/trunk/src/timerec.py b/rec10/trunk/src/timerec.py index 1caa500..0b93f05 100644 --- a/rec10/trunk/src/timerec.py +++ b/rec10/trunk/src/timerec.py @@ -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") diff --git a/rec10/trunk/src/tv2ts.py b/rec10/trunk/src/tv2ts.py index 4450364..d9df013 100644 --- a/rec10/trunk/src/tv2ts.py +++ b/rec10/trunk/src/tv2ts.py @@ -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): -- 2.11.0