bugfix: cleanup status messages when processing multiple files

Sat, 25 Nov 2017 15:37:54 +0100

author
mdd
date
Sat, 25 Nov 2017 15:37:54 +0100
changeset 13
cf5c5cec1b2b
parent 12
f0c7db3b239d
child 14
b398ae388328

bugfix: cleanup status messages when processing multiple files

ts2mkv.py file | annotate | diff | comparison | revisions
--- a/ts2mkv.py	Sat Nov 25 13:08:41 2017 +0100
+++ b/ts2mkv.py	Sat Nov 25 15:37:54 2017 +0100
@@ -48,6 +48,8 @@
         self.msg_eit = ""
         self.msg_ffmpeg = ""
         self.command = None
+        self.filename = None
+        self.outfilebase = None
 
         self.scaleto_720p = scaleto_720p
         self.rename = rename
@@ -62,8 +64,6 @@
             "-c:a copy",
             ]
 
-        self.filename = None
-        self.outfilebase = None
 
     def get_stream_index(self, data):
         """
@@ -284,6 +284,10 @@
         """
         First step: setup, analyze & prepare for conversion
         """
+        self.msg_prepare = ""
+        self.msg_eit = ""
+        self.msg_ffmpeg = ""
+
         self.filename = filename
         self.outfilebase = os.path.splitext(filename)[0]
         self.get_movie_description()

mercurial