X-Git-Url: http://git.osdn.net/view?p=rec10%2Frec10-git.git;a=blobdiff_plain;f=rec10%2Ftrunk%2Fsrc%2Fscan_ch.py;h=16290bdf52c805adeae4e860cf4b523cf84a9c16;hp=4761481cfd7edc62870b089fbee5cb044e6cea46;hb=0afb8749d11de6f47a1624703f0db81d89498a56;hpb=94b943f3df18cdb47dd4c41ee425712662f33e31 diff --git a/rec10/trunk/src/scan_ch.py b/rec10/trunk/src/scan_ch.py index 4761481..16290bd 100644 --- a/rec10/trunk/src/scan_ch.py +++ b/rec10/trunk/src/scan_ch.py @@ -82,6 +82,10 @@ def searchCh(): addCh("CS24","cs2","CS") rec10d.rec10db.change_installed_in_status(100) def checkTs(ch): + if os.path.exists(os.path.join(tmppath,"ch_"+str(ch)+".ts")): + os.remove(os.path.join(tmppath,"ch_"+str(ch)+".ts")) + if os.path.exists(os.path.join(tmppath,"ch_"+str(ch)+".ts.b25")): + os.remove(os.path.join(tmppath,"ch_"+str(ch)+".ts.b25")) tv2ts.tv2b25ts(os.path.join(tmppath,"ch_"+str(ch)+".ts"), ch, "1") if os.path.exists(os.path.join(tmppath,"ch_"+str(ch)+".ts")): os.remove(os.path.join(tmppath,"ch_"+str(ch)+".ts"))