mirror of
https://github.com/Iron-Row/claim_itch.git
synced 2026-03-11 08:54:39 +00:00
add option to skip games that caused errors
This commit is contained in:
parent
06e16c485a
commit
475747a8ef
1 changed files with 3 additions and 0 deletions
|
|
@ -490,6 +490,7 @@ def main():
|
|||
arg_parser.add_argument('--enable-images', action='store_true', help='load images in the browser while claiming games')
|
||||
arg_parser.add_argument('--mute', action='store_true', help='automatically mute while claiming games')
|
||||
arg_parser.add_argument('--ignore', action='store_true', help='continue even if an error occurs when handling a game')
|
||||
arg_parser.add_argument('--skip-errors', action='store_true', help='do not retry games that caused an error previously')
|
||||
args = arg_parser.parse_args()
|
||||
|
||||
if args.history_file is not None:
|
||||
|
|
@ -538,6 +539,8 @@ def main():
|
|||
sleep_time = 15
|
||||
try:
|
||||
ignore = set().union(*map(history.get, PROCESSED_GAMES))
|
||||
if args.skip_errors:
|
||||
ignore.update(history['error'])
|
||||
valid = history['urls'].difference(ignore)
|
||||
if len(valid) > 0:
|
||||
with create_driver(args.enable_images, args.mute) as driver:
|
||||
|
|
|
|||
Loading…
Reference in a new issue