import time
import commands
import traceback
+import datetime
import chdb
import rec10d
try:
if ch.find("bs")>-1:
if int(lstr)<300:
- rec10d.rec10db.add_epg_ch(bctype,chtxthead+"_"+lstr, ch, lstr, u"2010-01-01 00:00:00")
+ tnow=datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
+ rec10d.rec10db.add_epg_ch(bctype,chtxthead+"_"+lstr, ch, lstr, u"2010-01-01 00:00:00", u"2010-01-01 00:00:00",tnow)
else:
- rec10d.rec10db.add_epg_ch(bctype,chtxthead+"_"+lstr, ch, lstr, u"2010-01-01 00:00:00")
+ tnow=datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
+ rec10d.rec10db.add_epg_ch(bctype,chtxthead+"_"+lstr, ch, lstr, u"2010-01-01 00:00:00", u"2010-01-01 00:00:00",tnow)
except Exception, inst:
recdblist.addCommonlogEX("Warning", "addCh (scan_ch.py)", str(type(inst)),str(inst)+traceback.format_exc(),log_level=200)
checkB25Purchased(ch, prglist[1])