print bctype + "//ing:" + str(status.getBSCSRecording()) + ":task:" + str(recdb.countRecNow_minutes_BSCS("10"))
if recnum < 2:
print update
- rec10d.rec10db.update_status_by_bctype_chdata(bctype, "0")
+ rec10d.rec10db.update_status_by_bctype_epg_ch(bctype, "0")
epgdb.updatebc(bctype)
update = chdb.update()
i = i + 1
dt = dtt.days * 24 * 60 * 60 + dtt.seconds
if (dt < 58 * 60 and dt > 20 * 60):
bctypet = chdb.chtxtsearch(chtxt)['bctype']
- chdatat = rec10d.rec10db.select_by_bctype_chdata(bctypet)
+ chdatat = rec10d.rec10db.select_by_bctype_epg_ch(bctypet)
dt1 = datetime.datetime.strptime(chdatat[0][5], "%Y-%m-%d %H:%M:%S")-datetime.datetime.now()
dt1 = dt1.days * 24 * 60 * 60 + dt1.seconds
if dt1 < 60 * 60:
else:
print "nothing match"
else:
- if rec10d.rec10db.select_by_bctype_chdata(bctypet)[0][6] != "0":
- rec10d.rec10db.update_status_by_bctype_chdata(bctypet, "3")
+ if rec10d.rec10db.select_by_bctype_epg_ch(bctypet)[0][6] != "0":
+ rec10d.rec10db.update_status_by_bctype_epg_ch(bctypet, "3")
sys.exit()
elif dt <= 20 * 60:
try: