# HG changeset patch # User mdd # Date 1511904935 -3600 # Node ID 91cf8d348c748eb90938a1ac45cf1b979db2e7e5 # Parent 842120f000786e374f29daf5e1b2009e47cbdab9 brainfuck diff -r 842120f00078 -r 91cf8d348c74 ts2mkv.py --- a/ts2mkv.py Tue Nov 28 22:27:01 2017 +0100 +++ b/ts2mkv.py Tue Nov 28 22:35:35 2017 +0100 @@ -291,9 +291,8 @@ p = subprocess.Popen(shlex.split(" ".join(cmd)), \ stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() - with self.info["msg_ffmpeg"] as msg: - msg = out + "\n" + err - msg = msg[msg.find("Input #0"):] + self.info["msg_ffmpeg"] = out + "\n" + err + self.info["msg_ffmpeg"] = self.info["msg_ffmpeg"][self.info["msg_ffmpeg"].find("Input #0"):] def get_ffmpeg_command(self): """ @@ -462,10 +461,9 @@ args = parser.parse_args() processor = ts2mkv(crf=args.crf, tune=args.tune) - with processor.config as c: - c["scaledown"] = not args.ns - c["rename"] = args.rename - c["overwrite"] = args.f + processor.config["scaledown"] = not args.ns + processor.config["rename"] = args.rename + processor.config["overwrite"] = args.f for srcstr in args.input: src = glob.glob(srcstr)