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