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:
parent
a4051bf88c
commit
66d7aae89d
@ -36,6 +36,9 @@ def parse_satip_xml(data):
|
|||||||
name = root.find('.//*/{urn:schemas-upnp-org:device-1-0}friendlyName')
|
name = root.find('.//*/{urn:schemas-upnp-org:device-1-0}friendlyName')
|
||||||
result['name'] = name.text
|
result['name'] = name.text
|
||||||
satipcap = root.find('.//*/{urn:ses-com:satip}X_SATIPCAP')
|
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 = {}
|
caps = {}
|
||||||
for system in satipcap.text.split(","):
|
for system in satipcap.text.split(","):
|
||||||
cap = system.split("-")
|
cap = system.split("-")
|
||||||
|
Loading…
Reference in New Issue
Block a user