1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-11 07:17:21 +08:00

Added support for old syntax

This commit is contained in:
joncody 2018-04-07 22:13:35 -07:00
parent e078f7d468
commit 1416f2e7bc

View File

@ -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'