]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/postprocessor/exec.py
[cleanup] Add more ruff rules (#10149)
[yt-dlp.git] / yt_dlp / postprocessor / exec.py
index c2e73fbabd6548a7a449dc55d73533b5f4b3695f..1f0a0015ecb1a0e56e5334b2d9f55f403a3585b6 100644 (file)
@@ -1,6 +1,5 @@
 from .common import PostProcessor
-from ..compat import compat_shlex_quote
-from ..utils import Popen, PostProcessingError, variadic
+from ..utils import Popen, PostProcessingError, shell_quote, variadic
 
 
 class ExecPP(PostProcessor):
@@ -19,7 +18,7 @@ def parse_cmd(self, cmd, info):
         if filepath:
             if '{}' not in cmd:
                 cmd += ' {}'
-            cmd = cmd.replace('{}', compat_shlex_quote(filepath))
+            cmd = cmd.replace('{}', shell_quote(filepath))
         return cmd
 
     def run(self, info):