scpd path
This commit is contained in:
parent
f2ddc3166e
commit
7257947700
1 changed files with 1 additions and 2 deletions
|
@ -155,8 +155,7 @@ class Gateway:
|
||||||
async def register_commands(self, service: Service, soap_socket: socket.socket = None):
|
async def register_commands(self, service: Service, soap_socket: socket.socket = None):
|
||||||
if not service.SCPDURL:
|
if not service.SCPDURL:
|
||||||
raise UPnPError("no scpd url")
|
raise UPnPError("no scpd url")
|
||||||
service_dict = await scpd_get(("" if service.SCPDURL.startswith("/") else "/") + service.SCPDURL,
|
service_dict = await scpd_get(service.SCPDURL, self.base_ip.decode(), self.port)
|
||||||
self.base_ip.decode(), self.port)
|
|
||||||
if not service_dict:
|
if not service_dict:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue