Add a workaround for detecting Panasonic devices.

This commit is contained in:
Rolf Ahrenberg 2019-01-06 16:18:45 +02:00
parent a4051bf88c
commit 66d7aae89d
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ def parse_satip_xml(data):
name = root.find('.//*/{urn:schemas-upnp-org:device-1-0}friendlyName')
result['name'] = name.text
satipcap = root.find('.//*/{urn:ses-com:satip}X_SATIPCAP')
if satipcap is None:
# fallback for non-standard Panasonic
satipcap = root.find('.//*/{urn-ses-com:satip}X_SATIPCAP')
caps = {}
for system in satipcap.text.split(","):
cap = system.split("-")