diff --git a/youtube_dl/postprocessor/execafterdownload.py b/youtube_dl/postprocessor/execafterdownload.py index 08292e123..dc13cf5cc 100644 --- a/youtube_dl/postprocessor/execafterdownload.py +++ b/youtube_dl/postprocessor/execafterdownload.py @@ -21,6 +21,7 @@ class ExecAfterDownloadPP(PostProcessor): str_types = (str) if sys.version_info.major > 2 else (str, unicode) info = {} + cmd = cmd.replace('{}', '%(filepath)s') if '%(filepath)s' not in cmd: cmd += ' %(filepath)s'