def setB25Decoding(tasknum):
setData('b252ts',tasknum)
def getEPGUpdating():
- return getStatusNum("bepgupdate")
+ return getStatusNum("epgupdate")
def setEPGUpdating(bool):
setData('epgupdate', bool)
#print tasks
inum=recdb.countRecNow("1")
print "now-rectask"
- print "inum:"+str(inum)+"bscsrec:"+str(status.getBSCSRecording())+"terec:"+str(status.getTERecording())
+ print "inum:"+str(inum)+"bscsrec:"+str(status.getBSCSRecording())+"terec:"+str(status.getTERecording())+" epg:"+str(status.getEPGUpdating())
if inum+status.getBSCSRecording()+status.getTERecording() < 2:
update=chdb.update()
#print "番組表更新処理"
- print update
+
if len(update)>0 and status.getEPGUpdating()==0:
+ status.setEPGUpdating(1)
print "番組表を更新"
+ print update
status.setEPGUpdating(1)
pid=os.fork()
if pid!=0:#親プロセスの場合