mirror of
https://github.com/joshuaboniface/rffmpeg.git
synced 2026-07-18 00:45:53 +00:00
Add escaping of $ characters in arguments
Needed if a filename contains $. Could be added to later but for now hardcoded.
This commit is contained in:
parent
4f41b334ef
commit
3a3a3ae738
1 changed files with 2 additions and 0 deletions
2
rffmpeg
2
rffmpeg
|
|
@ -477,6 +477,8 @@ def run_remote_ffmpeg(
|
|||
|
||||
# Append all the passed arguments with requoting of any problematic characters
|
||||
for arg in ffmpeg_args:
|
||||
# Escape $ characters
|
||||
arg = arg.replace('$', '\\$')
|
||||
# Match bad shell characters: * ' ( ) | [ ] or whitespace
|
||||
if search("[*'()|\[\]\s]", arg):
|
||||
rffmpeg_ffmpeg_command.append(f'"{arg}"')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue