Skip to content

Commit

Permalink
add --no-postprocessors command-line option (#2725)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jul 3, 2022
1 parent c794777 commit 5806a18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gallery_dl/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,9 @@ def initialize(self, kwdict=None):
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)
Expand Down
5 changes: 5 additions & 0 deletions gallery_dl/option.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5806a18

Please sign in to comment.