OSDN Git Service

implement move after process.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sat, 21 Nov 2009 14:52:35 +0000 (14:52 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sat, 21 Nov 2009 14:52:35 +0000 (14:52 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@231 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/config.ini
rec10/trunk/src/timerec.py

index 56660c5..f8cb3b4 100644 (file)
@@ -10,7 +10,7 @@ recpath = /path of /recording
 #録画終了後に動画を置いておくフォルダを指定するとrectool.plでリスト化できます。
 recorded = /path of /recordedpath
 複数のrec10で役割を分担するときに用いる移動先
-move_destpath =
+move_destpath = / =
 epgdump = 
 tssplitter =
 MP4Box =
index 972bb09..4f89207 100644 (file)
@@ -411,6 +411,13 @@ def task():
                         if rec10d.rec10db.select_by_bctype_chdata(bctypet)[0][6] != "0":
                             rec10d.rec10db.update_status_by_bctype_chdata(bctypet, "3")
                     sys.exit()
+            elif dt <= 20 * 60:
+                try:
+                    recdb.del_reckey(recdb.REC_MOVE_AFTER_RECORD, title, chtxt, btime)
+                    recdb.rec_reckey(recdb.REC_MOVE_AFTER_RECORD_FINAL, title, chtxt, btime, etime, opt)
+                except Exception, inst:
+                    print type(inst)
+                    print inst
         elif task["type"] == recdb.REC_MOVE_AFTER_DECODE:#"res,"+chtxt+","+title+","+btime+","+etime+","+opt
             if (dt < 58 * 60 and dt > 20 * 60):
                 pid = os.fork()
@@ -452,6 +459,13 @@ def task():
                         if rec10d.rec10db.select_by_bctype_chdata(bctypet)[0][6] != "0":
                             rec10d.rec10db.update_status_by_bctype_chdata(bctypet, "3")
                     sys.exit()
+            elif dt <= 20 * 60:
+                try:
+                    recdb.del_reckey(recdb.REC_MOVE_AFTER_DECODE, title, chtxt, btime)
+                    recdb.rec_reckey(recdb.REC_MOVE_AFTER_DECODE_FINAL, title, chtxt, btime, etime, opt)
+                except Exception, inst:
+                    print type(inst)
+                    print inst
         elif task["type"] == recdb.REC_MOVE_AFTER_ENCODE:#"res,"+chtxt+","+title+","+btime+","+etime+","+opt
             if (dt < 58 * 60 and dt > 20 * 60):
                 pid = os.fork()
@@ -493,6 +507,13 @@ def task():
                         if rec10d.rec10db.select_by_bctype_chdata(bctypet)[0][6] != "0":
                             rec10d.rec10db.update_status_by_bctype_chdata(bctypet, "3")
                     sys.exit()
+            elif dt <= 20 * 60:
+                try:
+                    recdb.del_reckey(recdb.REC_MOVE_AFTER_ENCODE, title, chtxt, btime)
+                    recdb.rec_reckey(recdb.REC_MOVE_AFTER_ENCODE_FINAL, title, chtxt, btime, etime, opt)
+                except Exception, inst:
+                    print type(inst)
+                    print inst
         elif task["type"] == recdb.REC_MOVE_AFTER_RECORD_FINAL:#"rec,"+chtxt+","+title+","+btime+","+etime+","+opt
             print dt
             if dt < 6 * 60 and dt > 0: