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 <arksine.code@gmail.com>
This commit is contained in:
parent
5661b0216c
commit
0b4e604c95
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue