mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-22 20:18:30 +03:00
formatting
This commit is contained in:
parent
66bbe62ffb
commit
a6f8e1b9a9
@ -905,11 +905,7 @@ async def onvif_probe(
|
|||||||
"/11",
|
"/11",
|
||||||
]
|
]
|
||||||
# Use raw credentials for pattern fallback URIs when provided
|
# Use raw credentials for pattern fallback URIs when provided
|
||||||
auth_str = (
|
auth_str = f"{username}:{password}@" if username and password else ""
|
||||||
f"{username}:{password}@"
|
|
||||||
if username and password
|
|
||||||
else ""
|
|
||||||
)
|
|
||||||
rtsp_port = 554
|
rtsp_port = 554
|
||||||
for path in common_paths:
|
for path in common_paths:
|
||||||
uri = f"rtsp://{auth_str}{host}:{rtsp_port}{path}"
|
uri = f"rtsp://{auth_str}{host}:{rtsp_port}{path}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user