Merge pull request #1 from mothlyme/master

Fix a bug where pipe symbols break execution
This commit is contained in:
Joshua M. Boniface 2020-08-11 23:15:26 -04:00 committed by GitHub
commit a0cda2755e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -269,7 +269,7 @@ def setup_command(target_host):
# Parse and re-quote any problematic arguments
for arg in cli_ffmpeg_args:
# Match bad shell characters: * ( ) whitespace
if re.search('[*()\s]', arg):
if re.search('[*()\s|]', arg):
rffmpeg_command.append('"{}"'.format(arg))
else:
rffmpeg_command.append('{}'.format(arg))