From 23ca3ebf4f1cb8f0f6f62885db7e6e6ac06ebff7 Mon Sep 17 00:00:00 2001 From: mattk84 Date: Sat, 4 Sep 2021 02:07:28 -0500 Subject: [PATCH] Updated line 32 ffprobe.py For some reason, certain files hang in the ffprobe subprocess call when quotations are not present around the file name - added '"%s"' to enforce quotations --- ffprobe/ffprobe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffprobe/ffprobe.py b/ffprobe/ffprobe.py index f1eb3dc..7b87e85 100644 --- a/ffprobe/ffprobe.py +++ b/ffprobe/ffprobe.py @@ -29,7 +29,7 @@ def __init__(self, path_to_video): if os.path.isfile(self.path_to_video) or self.path_to_video.startswith('http'): if platform.system() == 'Windows': - cmd = ["ffprobe", "-show_streams", self.path_to_video] + cmd = ["ffprobe", "-show_streams", '"%s"' % self.path_to_video] else: cmd = ["ffprobe -show_streams " + pipes.quote(self.path_to_video)]