Skip to content

Commit

Permalink
Auto banned group skip if -ua
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Nov 24, 2024
1 parent 381330e commit cfc8200
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cfc8200

Please sign in to comment.