1
0
mirror of https://github.com/rofafor/vdr-plugin-satip.git synced 2023-10-10 13:37:42 +02:00

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

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("-")