optt=optt.replace("8","MW8")
optt=optt.replace("9","MW9")
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"))
recdblist.addlog(pout, txt2, "mkvmerge-log2")
if status.getSettings_auto_del_tmp()==1:
if os.path.exists(pout):
- if os.path.getsize(pout)>100*1000*1000:
- deltitle(dir,title)
+ if re.search(opts,"MW8") or re.search(opts,"MW9"):
+ if os.path.getsize(pout)>50*1000*1000:
+ deltitle(dir,title)
+ elif re.search(opts,"8") or re.search(opts,"9"):
+ ""
+ else:
+ if os.path.getsize(pout)>100*1000*1000:
+ deltitle(dir,title)
def execcomd(cmd):
txt=""
cmdt=u"nice -n 17 "+cmd
recdblist.addlog(pout, txt, "mp4box-log")\r
if status.getSettings_auto_del_tmp()==1:\r
if os.path.exists(pout):\r
- if os.path.getsize(pout)>100*1000*1000:\r
- deltitle(dir,title)\r
+ if re.search(opts,"MW8") or re.search(opts,"MW9"):\r
+ if os.path.getsize(pout)>50*1000*1000:\r
+ deltitle(dir,title)\r
+ elif re.search(opts,"8") or re.search(opts,"9"):\r
+ ""\r
+ else:\r
+ if os.path.getsize(pout)>100*1000*1000:\r
+ deltitle(dir,title)\r
def mkv2mp4(pin,pout):\r
exeb = configreader.getpath(u"mkvextract")\r
exe = configreader.getpath(u"mp4Box")\r