From 5ea689fe5d22db5c875c26afe84927f8e56ba4db Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 6 Jul 2008 19:22:59 +0200 Subject: [PATCH] escape filename --- oxdbarchive/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oxdbarchive/extract.py b/oxdbarchive/extract.py index 177ee21..0a57f0b 100644 --- a/oxdbarchive/extract.py +++ b/oxdbarchive/extract.py @@ -139,7 +139,7 @@ def extract_frame(movie_file, timestamp, img_folder, width=128, offset = 0, redo timestamp_in_file = timestamp if os.path.exists(movie_file): mplayer_options = '' - mplayer_options += " '%s'" % movie_file + mplayer_options += ' "%s"' % movie_file.replace('"', '\"') mplayer_options += " -ss '%s' -frames 2" % (timestamp_in_file) mplayer_options += " -vo jpeg:quality=90 " if width > 0: