From b04adcb45ae8b751b2e7bd6d196041c7e60e1834 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 10 May 2023 22:58:59 +0200 Subject: [PATCH] Handle query seperation (basicly) --- changedetectionio/content_fetcher.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/changedetectionio/content_fetcher.py b/changedetectionio/content_fetcher.py index f695f6ec..3d474dc3 100644 --- a/changedetectionio/content_fetcher.py +++ b/changedetectionio/content_fetcher.py @@ -469,6 +469,7 @@ class base_html_playwright(Fetcher): try: + amp = '&' if '?' in browserless_function_url else '?' response = requests.request( method="POST", json={ @@ -487,8 +488,9 @@ class base_html_playwright(Fetcher): } }, # @todo /function needs adding ws:// to http:// rebuild this - url=browserless_function_url+"&--disable-features=AudioServiceOutOfProcess&dumpio=true&--disable-remote-fonts", + url=browserless_function_url+f"{amp}--disable-features=AudioServiceOutOfProcess&dumpio=true&--disable-remote-fonts", timeout=wait_browserless_seconds) + # 'ziparchive::addglob() will throw an instance of error instead of resulting in a fatal error if glob support is not available.' except ReadTimeout: raise PageUnloadable(url=url, status_code=None, message=f"No response from browserless in {wait_browserless_seconds}s")