Added extra debug data

This commit is contained in:
Sergio Costas 2016-07-17 20:52:38 +02:00
parent 512e2f40c6
commit c1dc5d00c1
5 changed files with 7 additions and 3 deletions

View file

@ -89,6 +89,7 @@ class avprobe(devedeng.avbase.avbase):
self.original_fps = 0
self.original_aspect_ratio = 0
self.config.append_static_log("Getting data for {:s} with avprobe".format(file_name))
try:
video_data = json.loads(stdout2)
except:
@ -150,4 +151,5 @@ class avprobe(devedeng.avbase.avbase):
self.original_length = self.get_time(line[10:])
break
self.config.append_static_log("Estimated length: {:d}; Resolution: {:s}".format(self.original_length,self.original_size))
return False # no error

View file

@ -247,4 +247,4 @@ class configuration(GObject.GObject):
def get_log(self):
return self.static_log + "\n" + self.log
return "Static data:\n\n" + self.static_log + "\n\nDynamic data:\n\n" + self.log

View file

@ -88,6 +88,7 @@ class ffprobe(devedeng.executor.executor):
self.original_fps = 0
self.original_aspect_ratio = 0
self.config.append_static_log("Getting data for {:s} with ffprobe".format(file_name))
try:
video_data = json.loads(stdout2)
except:
@ -149,4 +150,5 @@ class ffprobe(devedeng.executor.executor):
self.original_length = self.get_time(line[10:])
break
self.config.append_static_log("Estimated length: {:d}; Resolution: {:s}".format(self.original_length,self.original_size))
return False # no error