mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-03 16:45:17 +00:00
[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
@ -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 @@ class ExecPP(PostProcessor):
|
||||
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):
|
||||
|
Reference in New Issue
Block a user