Allow --exec to be run at any post-processing stage
Deprecates `--exec-before-download`
This commit is contained in:
parent
ca30f449a1
commit
1e43a6f733
6 changed files with 52 additions and 45 deletions
|
|
@ -91,6 +91,7 @@ from .utils import (
|
|||
PerRequestProxyHandler,
|
||||
platform_name,
|
||||
Popen,
|
||||
POSTPROCESS_WHEN,
|
||||
PostProcessingError,
|
||||
preferredencoding,
|
||||
prepend_extension,
|
||||
|
|
@ -507,7 +508,7 @@ class YoutubeDL(object):
|
|||
|
||||
params = None
|
||||
_ies = {}
|
||||
_pps = {'pre_process': [], 'before_dl': [], 'after_move': [], 'post_process': []}
|
||||
_pps = {k: [] for k in POSTPROCESS_WHEN}
|
||||
_printed_messages = set()
|
||||
_first_webpage_request = True
|
||||
_download_retcode = None
|
||||
|
|
@ -525,7 +526,7 @@ class YoutubeDL(object):
|
|||
params = {}
|
||||
self._ies = {}
|
||||
self._ies_instances = {}
|
||||
self._pps = {'pre_process': [], 'before_dl': [], 'after_move': [], 'post_process': []}
|
||||
self._pps = {k: [] for k in POSTPROCESS_WHEN}
|
||||
self._printed_messages = set()
|
||||
self._first_webpage_request = True
|
||||
self._post_hooks = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue