extend '-A / --abort' & '"skip": "abort"' functionality (#7891)

implement ascending by more than 1 level or
up to an extractor with a specific subcategory
This commit is contained in:
Mike Fährmann
2025-07-30 00:01:49 +02:00
parent 64de6605ce
commit 2eb5e52055
5 changed files with 70 additions and 23 deletions

View File

@@ -48,7 +48,7 @@ def main():
if filename == "/O":
filename = "{filename}.{extension}"
elif filename.startswith("\\f"):
filename = "\f" + filename[2:]
filename = f"\f{filename[2:]}"
config.set((), "filename", filename)
if args.directory is not None:
config.set((), "base-directory", args.directory)
@@ -56,9 +56,9 @@ def main():
if args.postprocessors:
config.set((), "postprocessors", args.postprocessors)
if args.abort:
config.set((), "skip", "abort:" + str(args.abort))
config.set((), "skip", f"abort:{args.abort}")
if args.terminate:
config.set((), "skip", "terminate:" + str(args.terminate))
config.set((), "skip", f"terminate:{args.terminate}")
if args.cookies_from_browser:
browser, _, profile = args.cookies_from_browser.partition(":")
browser, _, keyring = browser.partition("+")