From 238b909c0bdd0c8cca4b80081d00a85e7535c443 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 20 Feb 2024 20:06:06 +0100 Subject: [PATCH] Custom browser endpoints should not have a proxy set --- changedetectionio/processors/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/changedetectionio/processors/__init__.py b/changedetectionio/processors/__init__.py index 0adc3b50..3ef718ff 100644 --- a/changedetectionio/processors/__init__.py +++ b/changedetectionio/processors/__init__.py @@ -75,12 +75,12 @@ class difference_detection_processor(): proxy_url = None if preferred_proxy_id: - # Custom browser endpoints should not have a proxy added - if not preferred_proxy_id.startswith('ui-'): + # Custom browser endpoints should NOT have a proxy added + if not prefer_fetch_backend.startswith('extra_browser_'): proxy_url = self.datastore.proxy_list.get(preferred_proxy_id).get('url') logger.debug(f"Selected proxy key '{preferred_proxy_id}' as proxy URL '{proxy_url}' for {url}") else: - logger.debug(f"Skipping adding proxy data when custom Browser endpoint is specified.") + logger.debug(f"Skipping adding proxy data when custom Browser endpoint is specified. ") # Now call the fetcher (playwright/requests/etc) with arguments that only a fetcher would need. # When browser_connection_url is None, it method should default to working out whats the best defaults (os env vars etc)