scpd path

This commit is contained in:
Jack Robison 2018-10-10 12:59:56 -04:00
parent f2ddc3166e
commit 7257947700
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -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