diff --git a/moviepy/video/VideoClip.py b/moviepy/video/VideoClip.py index bcc6bb2bb..0242f125c 100644 --- a/moviepy/video/VideoClip.py +++ b/moviepy/video/VideoClip.py @@ -1202,9 +1202,12 @@ def list(arg): lines = result.splitlines() if arg == 'font': - return [l[8:] for l in lines if l.startswith(" Font:")] + return [l.decode('UTF-8')[8:] for l in lines if l.startswith(b" Font:")] elif arg == 'color': - return [l.split(" ")[1] for l in lines[2:]] + return [l.split(b" ")[0] for l in lines[2:]] + else: + raise Exception("Moviepy:Error! Argument must equal " + "'font' or 'color'") @staticmethod def search(string, arg):