From 449b1aa77ea171a739d70dfe201d203a7e573359 Mon Sep 17 00:00:00 2001 From: Feramance Date: Fri, 6 Dec 2024 09:12:11 +0100 Subject: [PATCH] Adjust has_internet check --- qBitrr/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qBitrr/utils.py b/qBitrr/utils.py index 6324b24f..f83f799b 100644 --- a/qBitrr/utils.py +++ b/qBitrr/utils.py @@ -83,7 +83,7 @@ def has_internet(client: qbittorrentapi.Client): url = random.choice(PING_URLS) try: - if not is_connected(url) or not client.transfer_info()["connection_status"] == "connected": + if not is_connected(url) or client.transfer_info()["connection_status"] == "disconnected": return False except: logger.error("Error getting qbittorrent transfer info %s", client.transfer_info())