X-Git-Url: http://git.osdn.net/view?p=rec10%2Frec10-git.git;a=blobdiff_plain;f=rec10%2Ftrunk%2Fsrc%2Ftv2ts.py;h=c6c17887a631dba30f2ff611d0143d352718d40d;hp=f69551d031d4246bc4d661050086d32cb3d9b67c;hb=0cb548f555e4efb858e8112e306e15b7fec5935d;hpb=d87b1eccad1915cefec54f36f209db9dfbdb6959 diff --git a/rec10/trunk/src/tv2ts.py b/rec10/trunk/src/tv2ts.py index f69551d..c6c1788 100644 --- a/rec10/trunk/src/tv2ts.py +++ b/rec10/trunk/src/tv2ts.py @@ -101,7 +101,11 @@ def tv2b25ts(pout, ch, time): status.changeBSCSRecording(-1) else: status.changeTERecording(-1) - os.chmod(pout,0755) + if os.path.exists(pout): + try: + os.chmod(pout,0755) + except: + "" def b252tsmix(pin, pout): if not (os.path.exists(pout) and os.path.getsize(pin)>os.path.getsize(pout)*0.95 and os.path.getsize(pin)