OSDN Git Service

change many function.
[rec10/rec10-git.git] / rec10 / trunk / src / timerec.py
index 6d16f08..9a49a71 100644 (file)
@@ -71,7 +71,7 @@ def task():
                     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
@@ -332,7 +332,7 @@ def type_reserve(typetxt,chtxt,title,bt,et,opt):
     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:
@@ -363,8 +363,8 @@ def type_reserve(typetxt,chtxt,title,bt,et,opt):
             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: