OSDN Git Service

fix bugs.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sat, 15 Aug 2009 07:21:36 +0000 (07:21 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sat, 15 Aug 2009 07:21:36 +0000 (07:21 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@111 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/readme.txt
rec10/trunk/src/timerec.py
rec10/trunk/src/ts2epg.py

index d4d34ed..dad53a3 100644 (file)
@@ -1,7 +1,7 @@
 ###########################################
 #     Rec10 for PT1                  #
-#                     Ver.0.5.0a     #
-# 2009/08/01    Yukikaze                 #
+#                     Ver.0.6.0      #
+# 2009/08/15    Yukikaze                 #
 #  Copyright (C) 2009 Yukikaze   #
 ###########################################
 
@@ -9,7 +9,7 @@
 ライセンスは LGPL v3に準拠します(license.txt参照)
 
 [必要コマンド]
-python(2.5にて動作確認)
+python(2.5.2にて動作確認)
 xvfb-run
 wine
 mencoder(h.264サポートのもの)
@@ -20,11 +20,11 @@ perl
 一部のperlモジュール(watch rectool.pl)
 
 [必要環境:外部ツール]
-TsSplitter
-BonTsDemux
-epgdump
-b25
-recpt1(recfriioでもいいはずです)
+TsSplitter_lite(included)
+BonTsDemux(included)
+epgdump(included)
+b25(non-included)
+recpt1(recfriioでもいいはずです)(non-included)
 
 以上のソフトについては実行パスをconfig.iniに書いておいてください
 その後chdate.pyのチャンネル設定部分を書き換え、chdate.pyを実行してください
@@ -51,6 +51,10 @@ dbviewer.pyを実行すると現在のデーターベースを見ることがで
 yukikaze.jp@gmail.com
 
 [History]
+09/08/15 0.6.0 release
+Lots of bug fixes.
+Implement db using MySQL.
+
 09/08/01 0.5.0 release
 バグフィックス
 検索録画のパターンマッチングアルゴリズムの変更(推測的な検索ができるようになった)
index 3104e8c..b0c4597 100644 (file)
@@ -82,6 +82,7 @@ def task():
         tnow=datetime.datetime.now()
         dtt=bt-tnow
         dt=dtt.days*24*60*60+dtt.seconds
+        
         if task["type"]==recdb.REC_RESERVE:#"res,"+chtxt+","+title+","+btime+","+etime+","+opt
             isUpdate=0
             print dt
@@ -99,21 +100,25 @@ def task():
                         gettaskbscs=recdb.countRecNow_minutes_BSCS("10")
                         getnowbscs=status.getBSCSRecording()
                         bscs=getnowbscs+gettaskbscs
-                        if bscs <2:
+                        if bscs <2 and status.getEPGUpdating()!=1:
                             print "now(bscs):"+str(getnowbscs)+" task(bscs):"+str(gettaskbscs)
+                            status.setEPGUpdating(1)
                             epgdb.updatebc(chdb.chtxtsearch(chtxt)['bctype'])
                             time.sleep(10)
                             isUpdate=1
+                            status.setEPGUpdating(0)
                         else:
                             isUpdate=0
                     if cht=="te":
                         gettaskte=recdb.countRecNow_minutes_TE("10")
                         getnowte=status.getTERecording()
-                        bscs=getnowte+gettaskte
-                        if recdb.countRecNow_minutes_TE("10")+status.getTERecording() <2:
+                        te=getnowte+gettaskte
+                        if te <2 and status.getEPGUpdating()!=1:
                             print "now(te):"+str(getnowte)+" task(te):"+str(gettaskte)
+                            status.setEPGUpdating(1)
                             epgdb.updatebc(chdb.chtxtsearch(chtxt)['bctype'])
                             time.sleep(10)
+                            status.setEPGUpdating(0)
                             isUpdate=1
                         else:
                             isUpdate=0
index 31fd10d..0cc3303 100644 (file)
@@ -17,13 +17,13 @@ def write(pout,ch):
     print "ts2epg処理"
     bctype=chdb.chsearch(ch)['bctype']
     print ch+":"+bctype
-    timet="90"
+    timet="180"
     if re.search(u'cs',bctype):
         mode="/CS"
-        timet="200"
+        timet="300"
     elif re.search(u'bs',bctype):
         mode="/BS"
-        timet="150"
+        timet="300"
     else :
         mode=chdb.bctypesearch(u'te'+ch)['ontv']
     epgdump=configreader.getpath("epgdump")