mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-06 22:46:07 +02:00
Fix f005a35aa7
Printing inside `finally` causes the order of logging to change
when there is an error, which is undesirable. So this is reverted.
The issue of `--print` being blocked by pre-processors was an
unintentional side-effect of changing the operation orders in
170605840e
, and this is also partially
reverted.
This commit is contained in:
parent
f005a35aa7
commit
17ba4343cf
@ -3488,13 +3488,11 @@ def run_pp(self, pp, infodict):
|
|||||||
*files_to_delete, info=infodict, msg='Deleting original file %s (pass -k to keep)')
|
*files_to_delete, info=infodict, msg='Deleting original file %s (pass -k to keep)')
|
||||||
return infodict
|
return infodict
|
||||||
|
|
||||||
def run_all_pps(self, key, info, *, additional_pps=None):
|
def run_all_pps(self, key, info, *, additional_pps=None, fatal=True):
|
||||||
try:
|
|
||||||
for pp in (additional_pps or []) + self._pps[key]:
|
|
||||||
info = self.run_pp(pp, info)
|
|
||||||
finally:
|
|
||||||
if key != 'video':
|
if key != 'video':
|
||||||
self._forceprint(key, info)
|
self._forceprint(key, info)
|
||||||
|
for pp in (additional_pps or []) + self._pps[key]:
|
||||||
|
info = self.run_pp(pp, info)
|
||||||
return info
|
return info
|
||||||
|
|
||||||
def pre_process(self, ie_info, key='pre_process', files_to_move=None):
|
def pre_process(self, ie_info, key='pre_process', files_to_move=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user