pout=os.path.join(tmppath,"ch_"+str(ch)+".ts")
logt=tv2ts.tv2tsmix(pout, ch, "10")
retl=getTsProgNum(ch,pout)
- os.remove(pout)
+ try:
+ os.remove(pout)
+ except:
+ ""
return [retl,logt]
def getTsProgNum(ch,tspath):
pin=tspath
pout=os.path.join(tmppath,"chscan.txt")
chopt="-ch"
- if ch.find("CS")>-1 or ch.find("BS"):
+ if ch.find("CS")>-1 or ch.find("BS")>-1 :
chopt="-cs"
elif int(ch)>99:
chopt="-bs"
time.sleep(1)
try:
""
- #os.remove(pout)
+ os.remove(pout)
except:
""
return ret