From ae5cc34e86fb1ed4a5bae96b2d2bfd53fbf2c7ec Mon Sep 17 00:00:00 2001 From: ciccioxm3 Date: Thu, 26 Jun 2025 11:30:54 +0200 Subject: [PATCH] Update config_json.py --- StreamingCommunity/Util/config_json.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/StreamingCommunity/Util/config_json.py b/StreamingCommunity/Util/config_json.py index 28a107d..6f9800e 100644 --- a/StreamingCommunity/Util/config_json.py +++ b/StreamingCommunity/Util/config_json.py @@ -140,7 +140,7 @@ class ConfigManager: console.print(f"[bold cyan]Downloading reference configuration:[/bold cyan] [green]{self.reference_config_url}[/green]") try: - response = requests.get(self.reference_config_url, timeout=8, headers={'User-Agent': get_userAgent()}) + response = requests.get(self.reference_config_url, timeout=8, headers={'User-Agent': get_userAgent()}, verify=self.get_bool('REQUESTS', 'verify')) if response.status_code == 200: with open(self.file_path, 'wb') as f: @@ -275,8 +275,8 @@ class ConfigManager: } try: - console.print(f"[bold cyan]Retrieving site data from GitHub:[/bold cyan]") - response = requests.get(domains_github_url, timeout=8, headers=headers) + console.print("[bold cyan]Retrieving site data from GitHub:[/bold cyan]") + response = requests.get(domains_github_url, timeout=8, headers=headers, verify=self.get_bool('REQUESTS', 'verify')) if response.ok: self.configSite = response.json() @@ -344,7 +344,7 @@ class ConfigManager: try: logging.info(f"Downloading {filename} from {url}...") console.print(f"[bold cyan]File download:[/bold cyan] {os.path.basename(filename)}") - response = requests.get(url, timeout=8, headers={'User-Agent': get_userAgent()}) + response = requests.get(url, timeout=8, headers={'User-Agent': get_userAgent()}, verify=self.get_bool('REQUESTS', 'verify')) if response.status_code == 200: with open(filename, 'wb') as f: @@ -570,4 +570,4 @@ def get_use_large_bar(): # Initialize the ConfigManager when the module is imported -config_manager = ConfigManager() \ No newline at end of file +config_manager = ConfigManager()