3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009 Yukikaze
5 #import sys # モジュール属性 argv を取得するため
17 tsを取得してepgの入ったxmlとして書き出す
20 if re.search(u'cs', bctype):
22 elif re.search(u'bs', bctype):
24 write_time(pout, ch ,timet)
25 def write_time(pout, ch ,time):
27 指定された時間分tsを取得してepgの入ったxmlとして書き出す
29 recdblist.printutf8(u"Ts-EPG XML書き出し処理開始")
30 bctype = chdb.chsearch(ch)['bctype']
31 recdblist.printutf8(ch + ":" + bctype)
33 if re.search(u'cs', bctype):
35 elif re.search(u'bs', bctype):
38 mode = chdb.bctypesearch(u'te' + ch)['ontv']
39 epgdump = configreader.getpath("epgdump")
40 if os.access(pout + ".ts", os.F_OK):
41 os.remove(pout + ".ts")
43 tv2ts.tv2tsmix(pout + ".ts", ch, timet)
44 exe = "export LANG=ja_JP.UTF-8 && nice -n 15 " + epgdump + " " + mode + " " + pout + ".ts " + pout
45 recdblist.printutf8(exe)