dt = et-bt
if not typetxtencque=="":
tnow = datetime.datetime.now()
- bt = tnow + datetime.timedelta(seconds=900)
+ bt = tnow + datetime.timedelta(seconds=600)
et = bt + dt
btime = bt.strftime("%Y-%m-%d %H:%M:%S")
etime = et.strftime("%Y-%m-%d %H:%M:%S")
logo=pout.replace(".mkv",".log")
os.environ['LANG']="ja_JP.UTF-8"
txt= doexe+"\n"
- txt = txt+commands.getoutput(doexe.encode('utf-8'))
+ txt = txt+unicode(commands.getoutput(doexe.encode('utf-8')),'utf-8')
txt = "\n####mkvmerge-log####\n"+txt
f=open(logo,'a')
f.write(txt.encode('utf-8'))
status.changeTERecording(1)
doexe = exe + ' ' + ch + ' ' + time + ' \'' + pout + '\''
print doexe
- txt="####recpt1-log####\n"
- txt = txt + commands.getoutput(doexe.encode('utf-8'))
+ txt=u"####recpt1-log####\n"
+ txt = txt + unicode(commands.getoutput(doexe.encode('utf-8')),'utf-8')
logo=pout.replace(".ts.b25",".log")
f=open(logo,'w')
f.write(txt.encode('utf-8'))
print doexe
sys.stdout.flush()
logo=pin.replace(".ts.b25",".log")
- txt = commands.getoutput(doexe.encode('utf-8'))
+ txt = unicode(commands.getoutput(doexe.encode('utf-8')),'utf-8')
s=len(txt)
stxt=""
if s>1000:
doexe = "nice -n 18 " + doexe
logo=pin.replace(".ts.tsmix",".log")
os.environ['LANG']="ja_JP.UTF-8"
- txt = commands.getoutput(doexe.encode('utf-8'))
+ txt = unicode(commands.getoutput(doexe.encode('utf-8')),'utf-8')
stxt=txt
txt = "\n####tssplit-log####\nCommand:"+doexe+"\nlog:\n"+stxt
f=open(logo,'a')
data = data.replace(" ", "")
data = data.replace("\"", "")
data = data.replace("\'", "")
- datat = zenhan.toHankaku_ABC123(data)
+ data = zenhan.toHankaku_ABC123(data)
#data = datat.encode('utf-8')
if xmldate.has_key(lastflag):
if xmldate[lastflag] != data: