From 1416f2e7bc97d7844dcfdf1ef62a5dfca5815cea Mon Sep 17 00:00:00 2001 From: joncody Date: Sat, 7 Apr 2018 22:13:35 -0700 Subject: [PATCH] Added support for old syntax --- youtube_dl/postprocessor/execafterdownload.py | 1 + 1 file changed, 1 insertion(+) 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'