Add verified camera settings, family version recovery and account self service
This commit is contained in:
@@ -53,7 +53,9 @@ class Controller:
|
||||
body = '<m:StreamSetup><tt:Stream>RTP-Unicast</tt:Stream><tt:Transport><tt:Protocol>RTSP</tt:Protocol></tt:Transport></m:StreamSetup><m:ProfileToken>' + escape(p.get('token', '')) + '</m:ProfileToken>'
|
||||
root = self.call(c, media, onvif.MEDIA, 'GetStreamUri', body)
|
||||
uri = root.find('.//' + T + 'Uri')
|
||||
if uri is not None and url.urlsplit(uri.text).path == url.urlsplit(c['mainPath']).path:
|
||||
actual, wanted_uri = url.urlsplit(uri.text if uri is not None else ''), url.urlsplit(c['mainPath'])
|
||||
if (actual.hostname == c['host'] and actual.path == wanted_uri.path
|
||||
and sorted(url.parse_qsl(actual.query, keep_blank_values=True)) == sorted(url.parse_qsl(wanted_uri.query, keep_blank_values=True))):
|
||||
selected = p
|
||||
break
|
||||
if selected is None:
|
||||
|
||||
Reference in New Issue
Block a user