From 3a3a3ae738470eb5aa4001307769bc23198ceef2 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 22 May 2023 20:27:10 -0400 Subject: [PATCH] Add escaping of $ characters in arguments Needed if a filename contains $. Could be added to later but for now hardcoded. --- rffmpeg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rffmpeg b/rffmpeg index 43e9af5..fcbfa2f 100755 --- a/rffmpeg +++ b/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}"')