Skip to content

Commit 31e19e5

Browse files
authored
Normalize a few more urls for broken cameras (#40)
1 parent be8b2a7 commit 31e19e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onvif/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ async def update_xaddrs(self):
369369
try:
370370
if name.lower() in SERVICES and capability is not None:
371371
namespace = SERVICES[name.lower()]["ns"]
372-
self.xaddrs[namespace] = capability["XAddr"]
372+
self.xaddrs[namespace] = normalize_url(capability["XAddr"])
373373
except Exception:
374374
logger.exception("Unexpected service type")
375375
try:

0 commit comments

Comments
 (0)