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