- if re.search("8", opt) or re.search("9", opt):
- optt=opt
- optt=optt.replace("8","\\8")
- optt=optt.replace("9","\\9")
- pout = recpath + "/" + "m_"+title + ".mp4"
- tv2mp4.ts2mp4(pin, pout, optt)
+ if re.search("1", opt) or re.search("2", opt):
+ optt=opt.replace("1","MW1")
+ optt=optt.replace("2","MW2")
+ poutt = recpath + "/" + "m_"+title + ".mp4"
+ if re.search("d", opt) or re.search("5", opt):
+ if os.path.exists(os.path.join(recpath, "m_"+title+".m2v")):
+ shutil.move(os.path.join(recpath, title+".m2v"),os.path.join(recpath, "m_"+title+".m2v"))
+ if os.path.exists(os.path.join(recpath, "m_"+title+"_1.aac")):
+ shutil.move(os.path.join(recpath, title+"_1.aac"),os.path.join(recpath, "m_"+title+"_1.aac"))
+ if os.path.exists(os.path.join(recpath, "m_"+title+"_1.mp3")):
+ shutil.move(os.path.join(recpath, title+"_1.mp3"),os.path.join(recpath, "m_"+title+"_1.mp3"))
+ if os.path.exists(os.path.join(recpath, "m_"+title+"_2.aac")):
+ shutil.move(os.path.join(recpath, title+"_2.aac"),os.path.join(recpath, "m_"+title+"_2.aac"))
+ if os.path.exists(os.path.join(recpath, "m_"+title+"_2.mp3")):
+ shutil.move(os.path.join(recpath, title+"_2.mp3"),os.path.join(recpath, "m_"+title+"_2.mp3"))
+ shutil.move(os.path.join(recpath, title+".ts"),os.path.join(recpath, "m_"+title+".ts"))
+ tv2mp4.ts2mp4(os.path.join(recpath, "m_"+title+".ts"), poutt, optt)
+ shutil.move(os.path.join(recpath, "m_"+title+".ts"),os.path.join(recpath, title+".ts"))