From 24eb05bd899df6b7ee32e9fd9671b047f5d5cee9 Mon Sep 17 00:00:00 2001 From: bobokun Date: Mon, 5 Jun 2023 10:36:43 -0400 Subject: [PATCH] adjust skip_qb_version_check to not notify if true --- VERSION | 2 +- modules/qbittorrent.py | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/VERSION b/VERSION index 3ca2550..0350322 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.0.0-develop16 +4.0.0-develop17 diff --git a/modules/qbittorrent.py b/modules/qbittorrent.py index ce55de3..e8394f5 100755 --- a/modules/qbittorrent.py +++ b/modules/qbittorrent.py @@ -57,16 +57,14 @@ class Qbt: + f"Please downgrade your qBittorrent version to {self.SUPPORTED_VERSION} to use qbit_manage." ) if ex: - self.config.notify(ex, "Qbittorrent") - logger.print_line(ex, "CRITICAL") if self.config.commands["skip_qb_version_check"]: - logger.print_line( - "Continuing because qBittorrent version check is bypassed... Please do not ask for support!" - ) + ex += "\n[BYPASS]: Continuing because qBittorrent version check is bypassed... Please do not ask for support!" + logger.print_line(ex, "WARN") else: + self.config.notify(ex, "Qbittorrent") + logger.print_line(ex, "CRITICAL") sys.exit(0) - else: - logger.info("Qbt Connection Successful") + logger.info("Qbt Connection Successful") except LoginFailed as exc: ex = "Qbittorrent Error: Failed to login. Invalid username/password." self.config.notify(ex, "Qbittorrent")