From 506e5a6cc5073550d5972eb066d8cc8f42a1bbe8 Mon Sep 17 00:00:00 2001 From: Fabrice Quenneville Date: Sun, 15 Nov 2020 22:58:50 -0500 Subject: [PATCH] Fix for videos using ancient codecs --- curator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/curator.py b/curator.py index f9f134c..73f86c8 100755 --- a/curator.py +++ b/curator.py @@ -206,6 +206,8 @@ def get_resolution(filename): output = output.splitlines()[-1] elif "Header missing" in output: output = output.splitlines()[-1] + elif "SEI type" 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 @@ -232,6 +234,8 @@ def get_codec(filename): output = output.splitlines()[-1] elif "Header missing" in output: output = output.splitlines()[-1] + elif "SEI type" 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