implement 'post-filter' & 'post-range' options

(#8643)
This commit is contained in:
Mike Fährmann
2025-12-05 16:40:23 +01:00
parent d9c1d15aee
commit 5da200945b
5 changed files with 61 additions and 12 deletions

View File

@@ -697,11 +697,16 @@ def build_parser():
"These can be either a constant value, range, or slice "
"(e.g. '5', '8-20', or '1:24:3')"),
)
selection.add_argument(
"--post-range",
dest="post-range", metavar="RANGE", action=ConfigAction,
help=("Like '--range', but for posts"),
)
selection.add_argument(
"--chapter-range",
dest="chapter-range", metavar="RANGE", action=ConfigAction,
help=("Like '--range', but applies to manga chapters "
"and other delegated URLs"),
help=("Like '--range', but for child extractors handling "
"manga chapters, external URLs, etc."),
)
selection.add_argument(
"--filter",
@@ -712,11 +717,16 @@ def build_parser():
"Example: --filter \"image_width >= 1000 and "
"rating in ('s', 'q')\""),
)
selection.add_argument(
"--post-filter",
dest="post-filter", metavar="EXPR", action=ConfigAction,
help=("Like '--filter', but for posts"),
)
selection.add_argument(
"--chapter-filter",
dest="chapter-filter", metavar="EXPR", action=ConfigAction,
help=("Like '--filter', but applies to manga chapters "
"and other delegated URLs"),
help=("Like '--filter', but for child extractors handling "
"manga chapters, external URLs, etc."),
)
infojson = {