no log: added no-signalr args

pull/1996/head
morpheus65535 2 years ago
parent 60dfe6bb81
commit 4ada83f747

@ -28,6 +28,8 @@ parser.add_argument('--dev', default=False, type=bool, const=True, metavar="BOOL
help="Enable developer mode (default: False)") help="Enable developer mode (default: False)")
parser.add_argument('--no-tasks', default=False, type=bool, const=True, metavar="BOOL", nargs="?", parser.add_argument('--no-tasks', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
help="Disable all tasks (default: False)") help="Disable all tasks (default: False)")
parser.add_argument('--no-signalr', default=False, type=bool, const=True, metavar="BOOL", nargs="?",
help="Disable SignalR connections to Sonarr and/or Radarr (default: False)")
if not no_cli: if not no_cli:

@ -52,6 +52,7 @@ login_auth = settings.auth.type
update_notifier() update_notifier()
if not args.no_signalr:
if settings.general.getboolean('use_sonarr'): if settings.general.getboolean('use_sonarr'):
Thread(target=sonarr_signalr_client.start).start() Thread(target=sonarr_signalr_client.start).start()
if settings.general.getboolean('use_radarr'): if settings.general.getboolean('use_radarr'):

Loading…
Cancel
Save