#if inum+status.getBSCSRecording()+status.getTERecording() < 2:
update=chdb.update()
+ print update
print "番組表更新処理"
if len(update)>0:
pid=os.fork()
else:#子プロセスの場合 アップデートを行って終了
bctypet=chdb.chtxtsearch(chtxt)['bctype']
chdatat=rec10d.rec10db.select_by_bctype_chdata(bctypet)
- dt1=datetime.datetime.now()-datetime.datetime.strptime(chdatat[5],"%Y-%m-%d %H:%M:%S")
+ dt1=datetime.datetime.now()-datetime.datetime.strptime(chdatat[0][5],"%Y-%m-%d %H:%M:%S")
dt1=dt1.days*24*60*60+dt1.seconds
if dt1<60*60:
recdata=epgdb.searchtime2(title.decode('utf-8'),btime,"5",chtxt)
print "nothing match"
else:
rec10d.rec10db.update_status_by_bctype_chdata(bctypet,"3")
+ sys.exit()
"""cht=chdb.chtxtsearch(chtxt)['bctype']
if cht.find('te')!=-1:
cht='te'
et=et+datetime.timedelta(seconds=600)
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)
\ No newline at end of file
+ recdb.rec_reckey(recdb.REC_ENCODE_QUE,title,chtxt,btime,etime,opt)