3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009 Yukikaze
5 #import sys # モジュール属性 argv を取得するため
15 tsを取得してepgの入ったxmlとして書き出す
18 bctype=chdb.chsearch(ch)['bctype']
21 if re.search(u'cs',bctype):
24 elif re.search(u'bs',bctype):
28 mode=chdb.bctypesearch(u'te'+ch)['ontv']
29 epgdump=configreader.getpath("epgdump")
30 if os.access(pout+".ts", os.F_OK):
35 tv2ts.tv2tsmix(pout+".ts",ch,timet)
37 while not os.access(pout+".ts", os.F_OK):
39 tv2ts.tv2tsmix(pout+".ts",ch,timet)
43 exe="export LANG=ja_JP.UTF-8 && /usr/bin/nice -n 15 "+epgdump+" "+mode+" "+pout+".ts "+pout