From a9c780d8567381a7086a921e581e9ff7f437bcba Mon Sep 17 00:00:00 2001 From: gn64_jp Date: Sat, 15 Aug 2009 07:21:36 +0000 Subject: [PATCH] fix bugs. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@111 4e526526-5e11-4fc0-8910-f8fd03428081 --- rec10/trunk/src/readme.txt | 20 ++++++++++++-------- rec10/trunk/src/timerec.py | 11 ++++++++--- rec10/trunk/src/ts2epg.py | 6 +++--- 3 files changed, 23 insertions(+), 14 deletions(-) diff --git a/rec10/trunk/src/readme.txt b/rec10/trunk/src/readme.txt index d4d34ed..dad53a3 100644 --- a/rec10/trunk/src/readme.txt +++ b/rec10/trunk/src/readme.txt @@ -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 バグフィックス 検索録画のパターンマッチングアルゴリズムの変更(推測的な検索ができるようになった) diff --git a/rec10/trunk/src/timerec.py b/rec10/trunk/src/timerec.py index 3104e8c..b0c4597 100644 --- a/rec10/trunk/src/timerec.py +++ b/rec10/trunk/src/timerec.py @@ -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 diff --git a/rec10/trunk/src/ts2epg.py b/rec10/trunk/src/ts2epg.py index 31fd10d..0cc3303 100644 --- a/rec10/trunk/src/ts2epg.py +++ b/rec10/trunk/src/ts2epg.py @@ -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") -- 2.11.0