From 6be954431ac07356c7b65f96d7a73ad8e59c5cf9 Mon Sep 17 00:00:00 2001 From: NTFSvolume <172021377+NTFSvolume@users.noreply.github.com> Date: Thu, 21 Nov 2024 17:52:28 -0500 Subject: [PATCH] fix: do not startup real_debrid unless enabled --- cyberdrop_dl/managers/realdebrid_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cyberdrop_dl/managers/realdebrid_manager.py b/cyberdrop_dl/managers/realdebrid_manager.py index 4e9098a7a..71b88e02a 100644 --- a/cyberdrop_dl/managers/realdebrid_manager.py +++ b/cyberdrop_dl/managers/realdebrid_manager.py @@ -34,6 +34,8 @@ def __init__(self, manager: Manager) -> None: def startup(self) -> None: """Startup process for Real Debrid manager.""" + if not self.enabled: + return try: self.api = RealDebridApi(self.__api_token, True) file_regex = [pattern[1:-1] for pattern in self.api.hosts.regex()]