Skip to content

Commit

Permalink
Merge pull request #642 from deuteronomy-works/development
Browse files Browse the repository at this point in the history
Closes #635
  • Loading branch information
amoh-godwin authored Apr 28, 2023
2 parents 61e03f8 + aee8ce2 commit 9a36af4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyffmpeg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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.' +\
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9a36af4

Please sign in to comment.