From 66d7aae89dba965eac73520e7dc5ce5896d8a3ae Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sun, 6 Jan 2019 16:18:45 +0200 Subject: [PATCH] Add a workaround for detecting Panasonic devices. --- detectsatip.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/detectsatip.py b/detectsatip.py index e78ec10..cfad857 100755 --- a/detectsatip.py +++ b/detectsatip.py @@ -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("-")