From f1416e33d5eb3b1cb78b5e181420fd2f49fe4c25 Mon Sep 17 00:00:00 2001 From: Amoh Gyebi Ampofo Date: Fri, 28 Apr 2023 10:12:52 +0000 Subject: [PATCH 1/2] fix comment --- pyffmpeg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyffmpeg/__init__.py b/pyffmpeg/__init__.py index b95e0da..0f8bb64 100644 --- a/pyffmpeg/__init__.py +++ b/pyffmpeg/__init__.py @@ -220,7 +220,7 @@ def options(self, opts): self.logger.info('Options is a List') options = fix_splashes(opts) - # Add ffmpeg and overwrite variable + # Add overwrite variable options.insert(0, self._over_write) if self.loglevel not in self.loglevels: msg = 'Warning: "{}" not an ffmpeg loglevel flag.' +\ From 59e8a6b58a6ef7017d089de0cafe447a29dab19e Mon Sep 17 00:00:00 2001 From: Amoh Gyebi Ampofo Date: Fri, 28 Apr 2023 10:18:52 +0000 Subject: [PATCH 2/2] avoid dashed in linux --- pyffmpeg/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyffmpeg/__init__.py b/pyffmpeg/__init__.py index 0f8bb64..968aecd 100644 --- a/pyffmpeg/__init__.py +++ b/pyffmpeg/__init__.py @@ -15,7 +15,7 @@ # from base64 import b64decode, b64encode from .pseudo_ffprobe import FFprobe -from .misc import Paths, fix_splashes, SHELL +from .misc import Paths, fix_splashes, SHELL, OS_NAME logger = logging.getLogger('pyffmpeg') @@ -256,7 +256,7 @@ def options(self, opts): # add ffmpeg # Put into brackets if contain spaces - if " " in self._ffmpeg_file: + if OS_NAME == "windows": _ffmpeg_file = '"' + self._ffmpeg_file + '"' else: _ffmpeg_file = self._ffmpeg_file