Moved from os.system to subprocess.call
This commit is contained in:
parent
a7cacbca2b
commit
a2360a4c80
5 changed files with 32 additions and 28 deletions
|
@ -123,7 +123,7 @@ from .postprocessor import (
|
|||
FFmpegExtractAudioPP,
|
||||
FFmpegEmbedSubtitlePP,
|
||||
XAttrMetadataPP,
|
||||
ExecAfterDownload,
|
||||
ExecAfterDownloadPP,
|
||||
)
|
||||
|
||||
|
||||
|
@ -865,7 +865,7 @@ def _real_main(argv=None):
|
|||
# Please keep ExecAfterDownload towards the bottom as it allows the user to modify the final file in any way.
|
||||
# So if the user is able to remove the file before your postprocessor runs it might cause a few problems.
|
||||
if opts.execstring:
|
||||
ydl.add_post_processor(ExecAfterDownload(commandString=opts.execstring))
|
||||
ydl.add_post_processor(ExecAfterDownloadPP(verboseOutput=opts.verbose,commandString=opts.execstring))
|
||||
|
||||
# Update version
|
||||
if opts.update_self:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue