+ elif len(updatelogo)>0:
+ pid = os.fork()
+ if pid != 0:
+ ""
+ else:
+ i = 0
+ for bctype in updatelogo:
+ recnum = 0
+ if bctype.find('te') > -1:
+ recnum = status.getTERecording() + recdb.countRecNow_minutes_TE("1200")
+ recdblist.printutf8(u"ロゴ取得 : 放送種別-"+bctype + u"||該当チューナー実行中件数:" + str(status.getTERecording()) + u":直近予約件数:" + str(recdb.countRecNow_minutes_TE("10")),verbose_level=800)
+ recnum = int(configreader.getConfEnv("te_max")) -recnum
+ else:
+ recnum = status.getBSCSRecording() + recdb.countRecNow_minutes_BSCS("1200")
+ recdblist.printutf8(u"ロゴ取得 : 放送種別-"+bctype + u"||該当チューナー実行中件数:" + str(status.getBSCSRecording()) + u":直近予約件数:" + str(recdb.countRecNow_minutes_BSCS("10")),verbose_level=800)
+ recnum = int(configreader.getConfEnv("bscs_max")) -recnum
+ if recnum >0 :
+ recdblist.printutf8(str(updatelogo),verbose_level=750)
+ rec10d.rec10db.update_logostatus_by_bctype_epg_ch(bctype,"0")
+ epgdb.updateLogo_bc(bctype)
+ updatelogo = chdb.updateLogo()
+ i = i + 1
+ if i > 0:
+ break
+ time.sleep(5)
+ sys.exit()