add --no-postprocessors command-line option (#2725)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user