OSDN Git Service

rec10 0.9.5 function.
[rec10/rec10-git.git] / rec10 / trunk / src / timerec.py
index 97e1229..0cf2602 100644 (file)
@@ -598,12 +598,25 @@ def type_encode_que(typetxt,chtxt,title,bt,et,opt):
             if re.search("4", opt):
                 makeMP4=1
             recdblist.printutf8(pin)
-            if makeMP4==1:
-                pout = recpath + "/" + title + ".mp4"
-                tv2mp4.ts2mp4(pin, pout, opt)
+            if not re.search("0", opt):
+                if makeMP4==1:
+                    pout = recpath + "/" + title + ".mp4"
+                    tv2mp4.ts2mp4(pin, pout, opt)
+                else:
+                    pout = recpath + "/" + title + ".mkv"
+                    tv2mkv.ts2mkv(pin, pout, opt)
+                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)
             else:
-                pout = recpath + "/" + title + ".mkv"
-                tv2mkv.ts2mkv(pin, pout, opt)
+                optt=opt
+                optt=optt.replace("8","\\8")
+                optt=optt.replace("9","\\9")
+                pout = recpath + "/" + "m_"+title + ".mp4"
+                tv2mp4.ts2mp4(pin, pout, optt)
             recdb.del_reckey(typetxting, title, chtxt, btime)
             time.sleep(10)
             if re.search("E", opt):