def updatebc(bctype):
bctypel=chdb.bctypesearch(bctype)
print bctypel
- ts2epg.write(tmppath+"epgdate.xml",chdb.bctypesearch(bctype)['ch'])
- xml2db.xml2db(tmppath+"epgdate.xml",path+"ch.db",bctype)
+ i=1
+ while i<5:
+ try:
+ ts2epg.write(tmppath+"epgdate.xml",chdb.bctypesearch(bctype)['ch'])
+ xml2db.xml2db(tmppath+"epgdate.xml",path+"ch.db",bctype)
+ break
+ except:
+ i=i+1
def updateall():
update("hisch")
update("nhk-k")
###########################################
# Rec10 for PT1 #
-# Ver.0.4.1a #
-# 2009/05/09 Yukikaze #
+# Ver.0.5.0a #
+# 2009/08/01 Yukikaze #
# Copyright (C) 2009 Yukikaze #
###########################################
python(2.5にて動作確認)
xvfb-run
wine
-mencoder
+mencoder(h.264サポートのもの)
ffmpeg
[必要環境:Webインターフェース部分]
[必要環境:外部ツール]
TsSplitter
BonTsDemux
-tsEpg2xml
+epgdump
b25
-recpt1(recfriio)
+recpt1(recfriioでもいいはずです)
以上のソフトについては実行パスをconfig.iniに書いておいてください
その後chdate.pyのチャンネル設定部分を書き換え、chdate.pyを実行してください
yukikaze.jp@gmail.com
[History]
+09/08/01 0.5.0 release
+バグフィックス
+検索録画のパターンマッチングアルゴリズムの変更(推測的な検索ができるようになった)
+rectool.plを同梱するようにした。
+
09/07/01 0.4.1 release
lots of bug fixes
add some cs-ch.
#import glob
import time
import hashlib
+import status
#japanesenkf.overrideEncodings()
mypath=str(os.path.dirname(os.path.abspath(__file__)))+"/"
def tv2tsmix(pout,ch,time):
+ if len(ch)>2:#BS/CSは100とかCS??とかなので3文字以上
+ status.setBSCSRecording(status.getBSCSRecording()+1)
+ else:
+ status.setTERecording(status.getTERecording()+1)
tv2b25ts(pout+".b25",ch,time)
+ if len(ch)>2:#BS/CSは100とかCS??とかなので3文字以上
+ status.setBSCSRecording(status.getBSCSRecording()-1)
+ else:
+ status.setTERecording(status.getTERecording()-1)
+
b252tsmix(pout+".b25",pout)
#os.remove(pout+".b25")
if os.access(pout, os.F_OK):
#t=str(random.randint(10000,90000))
tempt=os.path.split(pout)
path=tempt[0]
+ if len(ch)>2:#BS/CSは100とかCS??とかなので3文字以上
+ status.setBSCSRecording(status.getBSCSRecording()+1)
+ else:
+ status.setTERecording(status.getTERecording()+1)
tv2b25ts(pout+".b25",ch,time)
+ if len(ch)>2:#BS/CSは100とかCS??とかなので3文字以上
+ status.setBSCSRecording(status.getBSCSRecording()-1)
+ else:
+ status.setTERecording(status.getTERecording()-1)
b252tsmix(pout+".b25",path+"/"+t+ext)
tsmix2ts(path+"/"+t+ext,pout,csch)
#os.remove(path+"/"+t+"."+temp[1])