From 02498c779dd3812fc110f098439740cce4a98d87 Mon Sep 17 00:00:00 2001 From: Fabrice Quenneville Date: Sun, 15 Nov 2020 22:53:37 -0500 Subject: [PATCH] Fix missing video headers --- curator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/curator.py b/curator.py index a131f25..f9f134c 100755 --- a/curator.py +++ b/curator.py @@ -204,6 +204,8 @@ def get_resolution(filename): output = output.splitlines()[-1] elif "Error, header damaged or not MPEG-4 header" in output: output = output.splitlines()[-1] + elif "Header missing" in output: + output = output.splitlines()[-1] except subprocess.CalledProcessError: print(f"{bcolors.FAIL}There seams to be an error with {filename}{bcolors.ENDC}") return False @@ -228,6 +230,8 @@ def get_codec(filename): output = output.splitlines()[-1] elif "Error, header damaged or not MPEG-4 header" in output: output = output.splitlines()[-1] + elif "Header missing" in output: + output = output.splitlines()[-1] except subprocess.CalledProcessError: print(f"{bcolors.FAIL}There seams to be an error with {filename}{bcolors.ENDC}") return False