mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-11 07:27:14 +08:00
Added support for old syntax
This commit is contained in:
parent
e078f7d468
commit
1416f2e7bc
@ -21,6 +21,7 @@ class ExecAfterDownloadPP(PostProcessor):
|
|||||||
str_types = (str) if sys.version_info.major > 2 else (str, unicode)
|
str_types = (str) if sys.version_info.major > 2 else (str, unicode)
|
||||||
info = {}
|
info = {}
|
||||||
|
|
||||||
|
cmd = cmd.replace('{}', '%(filepath)s')
|
||||||
if '%(filepath)s' not in cmd:
|
if '%(filepath)s' not in cmd:
|
||||||
cmd += ' %(filepath)s'
|
cmd += ' %(filepath)s'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user