rawlist = glob.glob(path + "/*.264")
for fn in rawlist:
if int(time.time()-os.path.getmtime(fn))>3000:
- tspath=fn.replace(".264",".ts")
- m2vpath=fn.replace(".264",".m2v")
+ tspath=unicode(fn.replace(".264",".ts"),'utf-8')
+ m2vpath=unicode(fn.replace(".264",".m2v"),'utf-8')
os.environ['LANG']="ja_JP.UTF-8"
ktmp=u"kill -9 `ps auxw | grep \""+tspath+u"\" | egrep -v grep | egrep -v \"sh -c\" | grep mencoder | awk '{print $2}'`"
kmmp=u"kill -9 `ps auxw | grep \""+m2vpath+u"\" | egrep -v grep | egrep -v \"sh -c\" | grep mencoder | awk '{print $2}'`"
db[1].execute('\
INSERT IGNORE into timeline \
(type,chtxt,title,btime,etime,deltatime,deltaday,opt,counter) \
- values (%s,%s,%s,%s,%s,%s,%s,%s)', \
+ values (%s,%s,%s,%s,%s,%s,%s,%s,%s)', \
(type, chtxt, title, btime, etime, deltatime, deltaday, opt ,counter))
##db.commit()
self.close_db(db)