- ext = os.path.splitext(pout)[1]#ext=".なんたら"
- tempt = os.path.split(pout)
- path = tempt[0]
- if len(ch) > 2:#BS/CSは100とかCS??とかなので3文字以上
- status.changeBSCSRecording(1)
- else:
- status.changeTERecording(1)
- try:
- tv2b25ts(pout + ".b25", ch, time)
- except Exception, inst:
- print "error occures in tv2ts.py tv2ts"
- print type(inst)
- print inst
- if len(ch) > 2:#BS/CSは100とかCS??とかなので3文字以上
- status.changeBSCSRecording(-1)
+ if ch.replace(" ","").isdigit():
+ if len(ch) > 2:#BS/CSは100とかCS??とかなので3文字以上
+ status.changeBSCSRecording(1)
+ else:
+ status.changeTERecording(1)
+ try:
+ tv2b25ts(pout + ".b25", ch, time)
+ except Exception, inst:
+ recdblist.addCommonlogEX(u"Error",u"tv2ts(tv2ts.py)", str(type(inst)),str(inst)+traceback.format_exc(),log_level=200)
+ if len(ch) > 2:#BS/CSは100とかCS??とかなので3文字以上
+ status.changeBSCSRecording(-1)
+ else:
+ status.changeTERecording(-1)