OSDN Git Service

implement mysql function.(RC1)
[rec10/rec10-git.git] / rec10 / trunk / src / tester.py
index 5f16a05..f30b2d5 100644 (file)
@@ -5,21 +5,23 @@
 #import sys
 #import os
 import chdb
+import configreader
 import xml2db
 import os
 import rec10d
 import checker
 import time
+import epgdb
 __author__="yukikaze"
 __date__ ="$2009/08/01 22:25:13$"
 path=str(os.path.dirname(os.path.abspath(__file__)))+"/"
 recpath="/home/ftpusr/ftp3/Recording/"
 if __name__ == "__main__":
-    d=time.time()
-    #xml2db.xml2db(path+"cs1epgdate.bak.xml","cs1")
-    #print time.time()-d
-    #rec10d.rec10db.update_by_bctype_chdata(u'cs')
-    basepath="カードキャプターさくら #69.ts.b25"
-    tspath=basepath.replace(".b25","")
-    print checker.checkB25Decode(recpath+basepath,recpath+tspath)
+    #d=time.time()#
+    #tspath=basepath.replace(".b25","")
+    #print checker.checkB25Decode(recpath+basepath,recpath+tspath)
+    #print configreader.getdbpath("test")
+    epgdb.updateall_bak()
+    #import rectime data from SQLite to MySQL
+    #rec10d.rec10db.import_from_SQLite(path+"ch.db")
     
\ No newline at end of file