Skip to content

Commit

Permalink
fixed max_errors -> max-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslaff committed Jul 8, 2024
1 parent 2070f97 commit dedb2d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nudecrawler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fails = 5
all = false
expr = '(total_images>5 and new_nude_images>0) or total_video>0'
total = 1
max_errors = 5
max-errors = 5
min-content-length = 0

[detect]
Expand Down
2 changes: 1 addition & 1 deletion nudecrawler/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_args(argv: str, methods_list: list[str], context_fields: list):
g.add_argument('--expr', '-e', metavar='EXPR', default=config['filter']['expr'],
help=f'Interesting if EXPR is True. def: { config["filter"]["expr"] }\nFields: ' + ' '.join(context_fields) )
g.add_argument('--total', metavar='N', type=int, default=config['filter']['total'], help=f'Skip detections if less then N total images ({config["filter"]["total"]})')
g.add_argument('--max-errors', metavar='N', type=int, default=config['filter']['max-errors'], help=f'Max allowed errors on page ({config["filter"]["max_errors"]})')
g.add_argument('--max-errors', metavar='N', type=int, default=config['filter']['max-errors'], help=f'Max allowed errors on page ({config["filter"]["max-errors"]})')
g.add_argument('--min-content-length', metavar='N', type=int, default=config['filter']['min-content-length'], help=f'Skip page if content-length less then N (try 5000 or higher)')

g = parser.add_argument_group('Image detection options')
Expand Down
2 changes: 1 addition & 1 deletion nudecrawler/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__="0.3.24"
__version__="0.3.25"

0 comments on commit dedb2d3

Please sign in to comment.