From 0b4e604c95b47296be9fa4789f6b8c6172d82069 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sat, 11 Feb 2023 07:49:06 -0500 Subject: [PATCH] webcam: remove call to escape_url The configured url should already be escaped. It isn't possible to reliably quote a full url if any of the parts contain special characters. Signed-off-by: Eric Callahan --- moonraker/components/webcam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/webcam.py b/moonraker/components/webcam.py index a61c96c..4ec5050 100644 --- a/moonraker/components/webcam.py +++ b/moonraker/components/webcam.py @@ -194,8 +194,8 @@ class WebcamManager: except Exception: logging.exception(f"Error Processing {img_type} url") result[f"{img_type}_url"] = "" + url: str = result["snapshot_url"] if result.get("snapshot_url", "").startswith("http"): - url = client.escape_url(result["snapshot_url"]) ret = await client.get(url, connect_timeout=1., request_timeout=1.) result["snapshot_reachable"] = not ret.has_error() return result