From cfc82004e0ff8d90cd6d5ea963b620dea9d60040 Mon Sep 17 00:00:00 2001 From: Audionut Date: Sun, 24 Nov 2024 20:16:52 +1000 Subject: [PATCH] Auto banned group skip if -ua --- upload.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/upload.py b/upload.py index ac2155cf..470c573e 100644 --- a/upload.py +++ b/upload.py @@ -821,7 +821,10 @@ def check_banned_group(tracker, banned_group_list, meta): console.print(f"[bold yellow]{meta['tag'][1:]}[/bold yellow][bold red] was found on [bold yellow]{tracker}'s[/bold yellow] list of banned groups.") q = True if q: - if not cli_ui.ask_yes_no(cli_ui.red, "Upload Anyways?", default=False): + if not meta['unattended'] or (meta['unattended'] and meta.get('unattended-confirm', False)): + if not cli_ui.ask_yes_no(cli_ui.red, "Upload Anyways?", default=False): + return True + else: return True return False