add --no-postprocessors command-line option (#2725)

pull/2739/head
Mike Fährmann 2 years ago
parent c794777600
commit 5806a1851e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -439,6 +439,9 @@ class DownloadJob(Job):
if self.archive:
self.archive.check = pathfmt.exists
if not cfg("postprocess", True):
return
postprocessors = extr.config_accumulate("postprocessors")
if postprocessors:
self.hooks = collections.defaultdict(list)

@ -283,6 +283,11 @@ def build_parser():
dest="download", nargs=0, action=ConfigConstAction, const=False,
help=("Do not download any files")
)
downloader.add_argument(
"--no-postprocessors",
dest="postprocess", nargs=0, action=ConfigConstAction, const=False,
help=("Do not run any post processors")
)
downloader.add_argument(
"--no-check-certificate",
dest="verify", nargs=0, action=ConfigConstAction, const=False,

Loading…
Cancel
Save