3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009 Yukikaze
18 __date__ ="$2009/08/01 22:25:13$"
19 path=str(os.path.dirname(os.path.abspath(__file__)))+"/"
20 recpath="/home/ftpusr/ftp3/Recording/"
21 if __name__ == "__main__":
23 #tspath=basepath.replace(".b25","")
24 #print checker.checkB25Decode(recpath+basepath,recpath+tspath)
25 #print configreader.getdbpath("test")
26 #epgdb.updateall_bak()
27 #import rectime data from SQLite to MySQL
28 #rec10d.rec10db.import_from_SQLite(path+"ch.db")
29 tnow=datetime.datetime.now()
30 bt=tnow+datetime.timedelta(seconds=20)
31 et=bt+datetime.timedelta(seconds=20)
32 btime=bt.strftime("%Y-%m-%d %H:%M:%S")
33 etime=et.strftime("%Y-%m-%d %H:%M:%S")
34 recdb.rec_reckey(recdb.REC_FINAL_RESERVE,u"ใในใ", "hisch", btime, etime, "S")